Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp navigation bar #220

Closed
wants to merge 4 commits into from
Closed

Revamp navigation bar #220

wants to merge 4 commits into from

Conversation

rgaiacs
Copy link
Contributor

@rgaiacs rgaiacs commented Jun 22, 2018

Copy link
Contributor

@fmichonneau fmichonneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like this change.

  1. Is there an easy way to show the episode numbers in the dropdown menu. If we include setup and all in one there, I think it's important to make the episodes stand out even more by including their numbers.
  2. If we move forward on this, I agree with Christina that the instructor notes should be at the top. Maybe after "improve this page"?

@@ -13,6 +13,7 @@
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/lesson.css" />
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/syntax.css" />
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you intend to include mathjax here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Sorry about it.

@rgaiacs
Copy link
Contributor Author

rgaiacs commented Jun 27, 2018

Is there an easy way to show the episode numbers in the dropdown menu.

I think so.

Copy link
Contributor

@maxim-belkin maxim-belkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looooove this one

@rgaiacs
Copy link
Contributor Author

rgaiacs commented Jul 3, 2018

aaa1919 implements the suggestion at carpentries/lesson-infrastructure#18 (comment).

Screenshots

screenshot from 2018-07-03 11-43-16

screenshot from 2018-07-03 11-43-34

screenshot from 2018-07-03 11-43-52

Changes to File System

The template now has the following directories

  • _extras4learners

    Any extra material targeting learners goes here. At the moment it includes setup.md, reference.md and discuss.md.

  • _extras4instructors

    Any extra material targeting instructors goes here. At the moment it includes notes.md (previous called guide.md), aio.md (all episodes in one page) and figures.md (all figures in one page). In the future we can add exercises.md (all exercises in one page).

  • _extras

    Any extra material that doesn't fit into _extras4learners and _extras4instructors. At the moment it includes about.md (information about The Carpentries).

TODO

@ChristinaLK
Copy link
Contributor

LGTM!

@fmichonneau
Copy link
Contributor

This looks great Raniere!

My comments:

  • replace _extras4instructors with _extras_instructors
  • replace _extras4lerners with _extras_learners

Unless there is a good technical reason for it, I would suggest the navigation bar reflects the organization of the files in the repository. Therefore, I think it would be best if about.md was at the root instead of being in _extras by itself. If in the future we need to create an _extras directory we can revisit this.

The bar seems a little crowded to me. I think we could move "License" to the footer next to the copyright information to make more room.

I also worry about the unintended consequences and extra work renaming the instructor guide file will have.

@maxim-belkin
Copy link
Contributor

Awesome work!

My comments:

  1. I concur with @fmichonneau regarding folder names: _extras_instructors and _extras_learners seem better to me. However, my suggestion is to keep _extras folder and simply create 2 subfolders: _instructors and _learners. In such a case, about.md can stay where it is, or see p.3

  2. Again, I agree with @fmichonneau regarding the crowdedness of the navigation bar and think that his suggestion to move LICENSE to the footer is reasonable. I think Code of Conduct can go to the footer as well.
    Related: We don't, actually, need Improve this page menu item in the navigation bar because there is Edit on GitHub link at the bottom.

  3. How about an about folder in _extras where we could add about_cp.md and about_lesson.md. In that case, we could add an About menu item to the navigation bar. Moreover, COC and LICENSE could also be moved to that About menu item (but stay where they are "physically"). And/or we could add a link to that not-yet-created "Get involved" page mentioned in Add new "pathway to contribute/get involved" page styles#322.

  4. I'm fine with renaming guide.md to notes.md. I think we just have to provide thorough instructions on how to handle this change well in advance in a form of Heads up from upstream issues.

I'll have a look at the actual diff later

@rgaiacs
Copy link
Contributor Author

rgaiacs commented Jul 4, 2018

simply create 2 subfolders: _instructors and _learners

I will need to check how Jekyll behave when collections is one subfolder.

think that his suggestion to move LICENSE to the footer is reasonable. I think Code of Conduct can go to the footer as well.

Related: We don't, actually, need Improve this page menu item in the navigation bar because there is Edit on GitHub link at the bottom.

I think that is important to have License and Code of Conduct at the navigation bar. One option is to have under "About"/_extras. The reason to have "Improve this page" at the menu and "Edit on GitHub" at the bottom is for improve user experience. If you are one instructor and know what episode you want to edit, you can get the link from the navigation bar. If you are one learner and reach the end of the episode and want to submit some change, you can use the link at the end. Because I don't have access to Google Analytics I can't make any decision based on data.

@fmichonneau fmichonneau added type:enhancement Propose enhancement to the lesson and removed enhancement labels Aug 21, 2018
@fmichonneau fmichonneau changed the base branch from gh-pages to main October 13, 2021 06:02
@fmichonneau
Copy link
Contributor

I'm going to close this as the next iteration of the lesson infrastructure will have a new structure for the top navigation bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Propose enhancement to the lesson
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants