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

Add feature: collapsible sidebar #182

Closed
uday-rana opened this issue Oct 17, 2024 · 12 comments · Fixed by #183
Closed

Add feature: collapsible sidebar #182

uday-rana opened this issue Oct 17, 2024 · 12 comments · Fixed by #183

Comments

@uday-rana
Copy link
Contributor

uday-rana commented Oct 17, 2024

I'd like to make the sidebar collapsible, like in Intro2OOP.

This would require a simple edit of docusaurus.config.js to add the following lines:

  themeConfig: {
    docs: {
      sidebar: {
        hideable: true,
      },
    },

similar to Seneca-ICTOER/Intro2OOP/commit/337ae7.

collapse expand
@uday-rana
Copy link
Contributor Author

uday-rana commented Oct 17, 2024

@humphd I'd appreciate it if you could look at this issue and let me know if this is a feature you're open to adding, and if you are, I'd like to go ahead and work on it. I'd also like to add this to Seneca-ICTOER/AdvOOP and Seneca-ICTOER/OERTemplate. Thanks!

@humphd
Copy link
Contributor

humphd commented Oct 17, 2024

@CameronGray1210
Copy link
Collaborator

CameronGray1210 commented Oct 18, 2024

Yes I can see the advantage of having the collapse feature.

cc @humphd @catherine-leung @uday-rana

@catherine-leung
Copy link

catherine-leung commented Oct 18, 2024

I would like this to be added to the template instead of the ipc notes. The template will affect all new course notes. The IPC notes are being replaced as part of our course update in the near future

https://github.com/Seneca-ICTOER/OERTemplate

@cszalwinski
Copy link

cszalwinski commented Oct 18, 2024 via email

@catherine-leung
Copy link

Hi Chris

Sorry about this, but I'm trying to understand what the issue here is with the template.
The template does not have content specific to any course notes. It is typically used only to create new course notes. I tried to make sure I did not include any content specific to any courses in the template. I'm wondering if I missed something when I created it. If I did, I am happy to remove it from the template as it should not be there. The images/texts/examples comes from docusaurus and things I made to show how to use the template.

Any updates to the 3 course notes that you wrote should have your name. On that I fully agree with you. I fully understand this and have reverted any changes that caused its removal.

@cszalwinski
Copy link

cszalwinski commented Oct 18, 2024 via email

@catherine-leung
Copy link

catherine-leung commented Oct 18, 2024

Hi Chris, sorry I'm still not sure I understand...

I am not sure why your name wasn't in the oop file (sorry I rarely ever look at notes in production since I don't teach those courses) so didn't even know it was missing. I have reverted it to ensure credit is given. That is only fair.

The OERTemplate does not affect any previously created OER's. It doesn't even affect OER's created based entirely on the template.

Github has 2 means of creating repos based on existing repos. One is to fork a repo. When you create a repo from a fork, then changes to the original can be pushed into repos based on original.

However, the template repo is based on a different means of creating repos called a template. If a repo is created from a template, changes to the template cannot be automatically merged into anything created from that template. The OERTemplate (and its recommended usage) is as a template, not as a fork.

Your 3 sets of notes were not created out of the OERTemplate.

I made that template because I needed an easy way to spin up new notes as I was moving my notes out of gitbooks. the template should not have affected any of the existing notes in the repos. I did however add some features while making the template (such as notes on how to put things in, simplification of some of the build processes, math support and so on). Perhaps there was an attempt at manually adding some of these features (or other features) into the 3 sets of node that created the issue.

I think the place where this would need to be added isn't in the template.. it should be added to the 3 sets of course notes. Perhaps a loud addition of comments just above the line so that any review of the diffs will show capture what must be kept? (Not sure how comments would work in that particular file... this would need to be tested).

@cszalwinski
Copy link

cszalwinski commented Oct 18, 2024 via email

@catherine-leung
Copy link

Thinking on this.. perhaps the better solution and one that would lead to less issue is the creation of a clear Authors page. That author's page is part of the content system (so it exists in the docs folder)

The docusaurus.js page is often updated to get newer versions of addons and so on (I think.. or I might be confusing it with other files...)

How do you feel about adding that page? I would suggest the creation of a Cover page to our notes which include Title and authors. Authors should be generated from an Authors.md file. This would take it out of the js file so that it doesn't get accidentally overwritten. It would also be useful to have if we were to add automatic pdf generation also.

@cszalwinski
Copy link

cszalwinski commented Oct 18, 2024 via email

@catherine-leung
Copy link

I'm not sure.. this is something that I will need to look at... It wasn't in the template repo I was working from... this is their own usage:

https://docusaurus.io/docs

and as you can see, it does not look like there is the concept of a cover or author page.
I'm not sure if this is part of the framework.. There is a blog plug in about adding authors but I don't think that is what we want.

The simplest thing to do is to create a cover page and hard code the authors into it and for established notes that might be the easiest thing to do...

A more long term solution would be to add an authors.md file that gets picked up and used to generate the cover.. for the template but that would still need to be manually added to your notes as they are not affected by template changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants