Skip to content

Commit

Permalink
jekyll: Move release_notes index into the collection (RobotLocomotion…
Browse files Browse the repository at this point in the history
…#14683)

This matches the index URL in Jekyll flavor to what the Sphinx flavor had,
to avoid breaking users' bookmarks.
  • Loading branch information
jwnimmer-tri authored Feb 20, 2021
1 parent 3075373 commit c0c6326
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion doc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ filegroup(
srcs = [
"_config.yml",
"index.md",
"release_notes.md",
] + glob([
"_includes/*.html",
"_includes/*.md",
Expand Down
3 changes: 1 addition & 2 deletions doc/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ doc/
├── _pages/ - Jekyll collection: Add'l root-level pages. Can render Markdown.
├── _release-notes/ - Jekyll collection: Index of versioned releases.
├── third_party/ - Third party assets.
├── index.md - Home page.
└── release_notes.md - Index for release notes.
└── index.md - Home page.
```

<!--
Expand Down
2 changes: 1 addition & 1 deletion doc/_layouts/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>{{ page.title }}</h1>
<section class="padding">
<div class="contain">
<article class="markdown-body">
<a href="{{ '/release_notes.html' | relative_url }}">Back to Release Notes</a>
<a href="{{ '/release_notes/release_notes.html' | relative_url }}">Back to Release Notes</a>
<hr/>
{{ page.content }}
</article>
Expand Down
2 changes: 1 addition & 1 deletion doc/_pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ You can choose to download a pre-compiled version of Drake, or to build it from
* [Binary installation (macOS, Ubuntu)](/from_binary.html)
* [Source installation (macOS, Ubuntu)](/from_source.html)
* [Using the Drake Docker Images From Docker Hub](/docker.html)
* [Release Notes](/release_notes.html)
* [Release Notes](/release_notes/release_notes.html)
2 changes: 2 additions & 0 deletions doc/release_notes.md → doc/_release-notes/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ title: Release Notes
Latest releases are first:

{% for note in site.release-notes reversed %}
{% if note.title != "Release Notes" %}
* <a href="{{ note.url }}.html">{{ note.title }}</a>
{% endif %}
{% endfor %}

</div>
Expand Down

0 comments on commit c0c6326

Please sign in to comment.