Skip to content

Commit 5b2da1a

Browse files
committed
Add a version string to subdoc output
The string is specified on the command line with --project-version.
1 parent e209b3f commit 5b2da1a

File tree

16 files changed

+38
-10
lines changed

16 files changed

+38
-10
lines changed

.github/workflows/subdoc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ jobs:
170170
--project-logo logo.png \
171171
--project-md sus/project.md \
172172
--project-name Subspace \
173+
--project-version 0.0.0 \
173174
--remove-source-path-prefix $PWD \
174175
--add-source-path-prefix ${source_url} \
175176
--source-path-line-prefix L \

.github/workflows/try.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ jobs:
417417
--project-logo logo.png \
418418
--project-md sus/project.md \
419419
--project-name Subspace \
420+
--project-version 0.0.0 \
420421
--remove-source-path-prefix $PWD \
421422
--add-source-path-prefix ${source_url} \
422423
--source-path-line-prefix L \

subdoc/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ links to various parts of the project's documentation.
175175
Points the logo image to the given `WEB_PATH` in the generated HTML pages.
176176
This can be the name of a file included in the output with `--copy-file`.
177177

178+
```
179+
--project-version VERSION_STRING
180+
```
181+
The version of the project, which will be displayed on the generated front
182+
page. If omitted, no version is shown.
183+
178184
```
179185
--favicon WEB_PATH
180186
```

subdoc/gen_tests/function-overloads/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

subdoc/gen_tests/markdown/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

subdoc/gen_tests/nested-namespace/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

subdoc/gen_tests/struct-basic/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

subdoc/gen_tests/struct-complex/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

subdoc/gen_tests/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

subdoc/gen_tests/typenames-across-paths/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a href="#">PROJECT NAME</a>
4040
</div>
4141
<div class="sidebar-subtitle sidebar-text">
42-
TODO: version
42+
Version VERSION_STRING
4343
</div>
4444
<div class="sidebar-links sidebar-text">
4545
<ul>

0 commit comments

Comments
 (0)