Skip to content

Commit 47e43d8

Browse files
committed
more
1 parent 81e5366 commit 47e43d8

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

src/index.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ JuliaDocs is the home for the following packages and repositories:
1616
* [DocInventories.jl -- Read and write documentation inventory files such as the objects.inv file generated by Documenter and Sphinx](https://github.com/JuliaDocs/DocInventories.jl)
1717
* [DocStringExtensions.jl -- Extensions for Julia's docsystem.](https://github.com/JuliaDocs/DocStringExtensions.jl)
1818
* [DocumentationGenerator.jl -- ](https://github.com/JuliaDocs/DocumentationGenerator.jl)
19-
* [DocumentationGeneratorRegistry -- ](https://github.com/JuliaDocs/DocumentationGeneratorRegistry)
2019
* [Documenter.jl -- A documentation generator for Julia.](https://github.com/JuliaDocs/Documenter.jl)
2120
* [DocumenterCitations.jl -- DocumenterCitations.jl uses Bibliography.jl to add support for BibTeX citations and references in documentation pages generated by Documenter.jl.](https://github.com/JuliaDocs/DocumenterCitations.jl)
2221
* [DocumenterInterLinks.jl -- A plugin for Documenter.jl that enables linking between projects](https://github.com/JuliaDocs/DocumenterInterLinks.jl)
@@ -106,15 +105,6 @@ PackageDefinition(
106105
"https://codecov.io/gh/JuliaDocs/DocumentationGenerator.jl/branch/master/graph/badge.svg" => "https://codecov.io/gh/JuliaDocs/DocumentationGenerator.jl",
107106
]
108107
),
109-
PackageDefinition(
110-
"DocumentationGeneratorRegistry", "https://github.com/JuliaDocs/DocumentationGeneratorRegistry",
111-
[
112-
"README" => "https://github.com/JuliaDocs/DocumentationGeneratorRegistry",
113-
],
114-
[
115-
"https://codecov.io/gh/JuliaDocs/DocumentationGeneratorRegistry/branch/master/graph/badge.svg" => "https://codecov.io/gh/JuliaDocs/DocumentationGeneratorRegistry",
116-
]
117-
),
118108
PackageDefinition(
119109
"Documenter", "https://github.com/JuliaDocs/Documenter.jl",
120110
[

update.jl

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
1+
#
2+
# This script can regenerate index.md. You can run it via
3+
#
4+
# julia --proj=. update.jl > src/index.md
5+
#
16
using JSON
27

8+
# query information about all JuliaDocs repositories
39
data = read(`gh repo list JuliaDocs --json "isArchived,description,homepageUrl,name,url,defaultBranchRef"`, String)
4-
510
repos = JSON.parse(data)
611

7-
# drop archived repositories
12+
# exclude archived repositories
813
repos = filter!(x -> !x["isArchived"], repos)
914

10-
repos = filter!(x -> x["name"] != "juliadocs.github.io", repos)
15+
# exclude some other repostiroies
16+
excluded = [
17+
"juliadocs.github.io",
18+
"DocumentationGeneratorRegistry",
19+
]
20+
repos = filter!(x -> x["name"] excluded, repos)
1121

22+
# sort alphabetical
1223
sort!(repos, by = x -> x["name"])
1324

25+
26+
# Now we print the index.md content. This just hardcoded a header and footer.
27+
# This is quick & dirty hack; a full template system might be nicer in theory,
28+
# but in practice this is good enough and dead simple.
1429
print("""
1530
# JuliaDocs
1631
@@ -32,7 +47,7 @@ for r in repos
3247
println("* [$name -- $desc]($url)")
3348
end
3449

35-
# TODO: should we linke to the homepage URL, if any, and provide the
50+
# TODO: should we link to the homepage URL, if any, and provide the
3651
# repository link separately, like it was done for the cheat sheet:
3752
#
3853
# * [Julia cheat sheet](https://cheatsheet.juliadocs.org/) ([repository](https://github.com/JuliaDocs/Julia-Cheat-Sheet))

0 commit comments

Comments
 (0)