Skip to content

Commit e6499cb

Browse files
committed
Remove pre-release and old versions from the online documentation
Removed the v0.5.0 and pre-release versions of v0.6.0 from the menu in the published documetation. This will direct users to more recent stable relese versions, and help keep the size of the "Production" branch of atomvm_www below the 1 GB limit for GitHub Pages branches. Note: the directories for these old version will be removed from the atomvm_www Production branch in a PR in that repo, these changes just prvent them from being incuded in the navigation menu. Signed-off-by: Winford <winford@object.stream>
1 parent bd2c345 commit e6499cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/conf.py.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extensions = [
6060
'sphinx.ext.graphviz'
6161
]
6262

63+
graphviz_output_format = 'svg'
6364

6465
suppress_warnings = [
6566
'epub.unknown_project_files',
@@ -91,8 +92,6 @@ source_suffix = {
9192

9293
# -- Sphinx Extension configuration ---------------------------------------------------
9394

94-
graphviz_output_format = 'svg'
95-
9695
# Breathe configuration
9796
breathe_projects = { "libatomvm": "@CMAKE_CURRENT_BINARY_DIR@/xml/" }
9897
breathe_default_project = "libatomvm"
@@ -170,9 +169,11 @@ tag_list = sorted(repo.tags, key=lambda t: t.commit.committed_datetime)
170169
latest_tag = tag_list[-1]
171170
versions = list()
172171
release_list = list()
172+
omit_tag_list = [ 'v0.6.0-alpha.0', 'v0.6.0-alpha.1', 'v0.6.0-alpha.2', 'v0.6.0-beta.0', 'v0.6.0-beta.1', 'v0.6.0-rc.0' ]
173173
for tag in tag_list:
174-
versions.append(tag.name)
175-
release_list.append(tag.name)
174+
if tag.name not in omit_tag_list:
175+
versions.append(tag.name)
176+
release_list.append(tag.name)
176177

177178
omit_branch_list = [ 'release-0.5' ]
178179
branch_list = sorted(repo.branches, key=lambda t: t.commit.committed_datetime)

0 commit comments

Comments
 (0)