Skip to content
This repository was archived by the owner on Jan 3, 2018. It is now read-only.

Add navigation links in lessons (v5) #384

Closed
wants to merge 1 commit into from

Conversation

rgaiacs
Copy link

@rgaiacs rgaiacs commented Mar 15, 2014

This is a work in progress for #214. Don't merge it yet.

Abstract

Right now our lessons don't have a navigation bar with links to previous and next lesson as show in the screenshot below.

swc-no-nav

This PR add this useful navigation bar as show in the screenshot below.

swc-nav

Technical details

The navigation bar can be build using only Jekyll's template (but I fail to do it, you can check what I do in rgaiacs/bc@715c5bd) or adding the information needed in YAML header (what this PR does).

Add the information needed to the navigation bar in YAML header have the disadvantage that it will need to be update at some point (this isn't a big problem because make can do it) and for lessons wrote using IPython Notebook it need to be add after the .ipynb is converted to .md.

TODO

  • Improve the navigation layout using CSS

    I invite all CSS experts to send a PR to fix this.

  • Improve the Makefile to handle IPython Notebook lessons properly

    @gvwilson Can you take a look on it?

@rgaiacs
Copy link
Author

rgaiacs commented Mar 19, 2014

I update it to use v4's CSS.

nav

@rgaiacs
Copy link
Author

rgaiacs commented May 29, 2014

@gvwilson and @acabunoc I rebase the previous work since it we had make many changes in Makefile that will raise some conflicts. Since we change how we deal with IPython Notebook it won't be a problem and the links will be always update when building the site (since it only take a few seconds I'm OK if it).

- Add Python script to add navigation link
- Add Makefile rule to use the Python script
- Change layout to use the navigation link
- Improve the navigation layout based on v4
- Add information into files
@gvwilson
Copy link
Contributor

We need to re-think inter-lesson linkages after splitting the repo (#759), so I propose closing this one.

@rgaiacs
Copy link
Author

rgaiacs commented Sep 29, 2014

Agree with @gvwilson

We need to re-think inter-lesson linkages after splitting the repo (#759), so I propose closing this one.

@rgaiacs rgaiacs closed this Sep 29, 2014
rgaiacs pushed a commit to rgaiacs/swc-lesson-template that referenced this pull request Nov 29, 2014
Navigation links, i.e. next, previous and home/index,
is a long request:

- swcarpentry/DEPRECATED-site#514
- swcarpentry/DEPRECATED-bc#214
- swcarpentry/DEPRECATED-bc#384

This Implements the navigation links using a few shell
commands.

TODO:

- Improve CSS
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants