Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Site navbar: add "Learning Outcomes" as an SE-EDU specific item
Browse files Browse the repository at this point in the history
Students browsing the SE-EDU website may wish to have easy access to the
Learning Outcomes for AddressBook-Level4.

As such, let's add a "Learning Outcomes" link to the navigation bar.

Downstream projects have no use for the "Learning Outcomes" document,
since they are supposed to be standalone products. Hence, let's make the
"Learning Outcomes" link SE-EDU-only, visible only when the `site-seedu`
attribute is set.
  • Loading branch information
pyokagan committed Jul 4, 2018
1 parent 83078bc commit a6c8d2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/DeveloperGuide.adoc
Expand Up @@ -468,7 +468,9 @@ Asciidoctor's https://asciidoctor.org/docs/user-manual/#builtin-attributes[built
|`site-section`
|Site section that the document belongs to.
This will cause the associated item in the navigation bar to be highlighted.
One of: `UserGuide`, `DeveloperGuide`, `AboutUs`, `ContactUs`.
One of: `UserGuide`, `DeveloperGuide`, ``LearningOutcomes``{asterisk}, `AboutUs`, `ContactUs`

_{asterisk} Official SE-EDU projects only_
|_not set_

|`no-site-header`
Expand Down
1 change: 1 addition & 0 deletions docs/LearningOutcomes.adoc
@@ -1,4 +1,5 @@
= Learning Outcomes
:site-section: LearningOutcomes
:toc: macro
:toc-title:
:toclevels: 1
Expand Down
3 changes: 3 additions & 0 deletions docs/templates/_header.html.slim
Expand Up @@ -31,6 +31,9 @@
=nav_link('UserGuide', 'UserGuide.html', 'User Guide')
li.nav-item
=nav_link('DeveloperGuide', 'DeveloperGuide.html', 'Developer Guide')
- if attr? 'site-seedu'
li.nav-item
=nav_link('LearningOutcomes', 'LearningOutcomes.html', 'LOs')
li.nav-item
=nav_link('AboutUs', 'AboutUs.html', 'About Us')
li.nav-item
Expand Down

0 comments on commit a6c8d2e

Please sign in to comment.