Skip to content

Commit

Permalink
documentation: add master as a selectable version
Browse files Browse the repository at this point in the history
Adds the master branch documentation as an option to choose
from the drop-down list in the `Documentation` section.
  • Loading branch information
wpiet authored and sjanc committed Aug 19, 2024
1 parent 0d0e59b commit d8e383d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion custom-theme/choose_doc_version.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<select class="form-control" onchange="if (this.value) window.location.href=this.value">
<option value="/latest">
Version: latest
</option>

<option value="/master/" {% if config.extra.version=="master" %}selected="selected" {% endif %}>
Version: master
</option>
<option value="/v1_12_0/" {% if config.extra.version=="v1_12_0" %}selected="selected" {% endif %}>
<option value="/v1_12_0/" {% if config.extra.version=="v1_12_0" %}selected="selected" {% endif %}>
Version: 1.12.0
</option>
<option value="/v1_11_0/" {% if config.extra.version=="v1_11_0" %}selected="selected" {% endif %}>
Expand Down
4 changes: 2 additions & 2 deletions docs/documentation.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Apache Mynewt Documentation

- Latest version:
- [latest](/latest/)
- [1.12.0](/latest/)
- [master (development)](/master/)
- Earlier versions:
- [1.12.0](/v1_12_0/)
- [1.11.0](/v1_11_0/)
- [1.10.0](/v1_10_0/)
- [1.9.0](/v1_9_0/)
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ markdown_extensions:
pygments_style: xcode

extra:
version: "master"
version: "1.12.0"
versions:
- label: "master"
sha: "master"
Expand Down

0 comments on commit d8e383d

Please sign in to comment.