Skip to content

Commit

Permalink
docs: configure template
Browse files Browse the repository at this point in the history
In the previous commit, we imported the documentation template from
AddressBook-Level4.

However, the template is still configured for AddressBook-Level4.

Let's use our own configuration.
  • Loading branch information
pyokagan committed Jul 5, 2018
1 parent b6e0e9c commit 6ea1f4e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ asciidoctor {
idprefix: '', // for compatibility with GitHub preview
idseparator: '-',
'site-root': "${sourceDir}", // must be the same as sourceDir, do not modify
'site-name': 'AddressBook-Level4',
'site-githuburl': 'https://github.com/se-edu/addressbook-level4',
'site-name': 'AddressBook-Level1',
'site-githuburl': 'https://github.com/se-edu/addressbook-level1',
'site-seedu': true, // delete this line if your project is not a fork (not a SE-EDU project)
]

Expand Down
1 change: 1 addition & 0 deletions docs/DeveloperGuide.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
= AddressBook Level 1 - Developer Guide
:site-section: DeveloperGuide
:stylesDir: stylesheets

[[SettingUp]]
Expand Down
1 change: 1 addition & 0 deletions docs/LearningOutcomes.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
= Learning Outcomes
:site-section: LearningOutcomes
:toc: macro
:toc-title:
:toclevels: 1
Expand Down
1 change: 1 addition & 0 deletions docs/UserGuide.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
= AddressBook Level 1 - User Guide
:site-section: UserGuide
:stylesDir: stylesheets
ifdef::env-github[]
:tip-caption: :bulb:
Expand Down
8 changes: 2 additions & 6 deletions docs/templates/_header.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
img src=(site_url 'images/SeEduLogo.png') alt='SE-EDU'
ul.navbar-nav
li.nav-item
a.nav-link href='https://se-edu.github.io/addressbook-level1' AB-1
a.nav-link.active href=(site_url 'index.html') AB-1
li.nav-item
a.nav-link href='https://se-edu.github.io/addressbook-level2' AB-2
li.nav-item
a.nav-link href='https://se-edu.github.io/addressbook-level3' AB-3
li.nav-item
a.nav-link.active href=(site_url 'index.html') AB-4
a.nav-link href='https://se-edu.github.io/addressbook-level4' AB-4
li.nav-item
a.nav-link href='https://se-edu.github.io/collate' Collate
li.nav-item
Expand All @@ -35,10 +35,6 @@
- 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
=nav_link('ContactUs', 'ContactUs.html', 'Contact Us')
- if attr? 'site-githuburl'
li.navitem
a.nav-link href=(attr 'site-githuburl')
Expand Down

0 comments on commit 6ea1f4e

Please sign in to comment.