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

Lots of directories with nothing but an index.md #38

Closed
ferrouswheel opened this issue Feb 25, 2019 · 6 comments
Closed

Lots of directories with nothing but an index.md #38

ferrouswheel opened this issue Feb 25, 2019 · 6 comments
Assignees

Comments

@ferrouswheel
Copy link
Contributor

We have some pages that unnecessarily use directories, making it annoying to edit content. In editor tabs it shows up as lots of index.md files opened.

People should use directories only if needed. e.g. there is associated content (some of the tutorials) or there is a nested structure to the content itself.

Even for associated content, I think it'd be better to keep our documentation separate from the actual scripts and code.

These guidelines should be added to #37 if agreed upon.

@IbbyBenali
Copy link
Collaborator

Can you maybe point to some of the unnecessary ones as an example and how you would re-organize that?

@ferrouswheel
Copy link
Contributor Author

It's primarily the directories under tutorials. Every tutorial had a directory, even if they have no supporting assets.

My preference would be:

tutorials/[tutorial-name].md

(as I've done for tutorials/call-a-service.md etc)

Then for the actual assets (only for tutorials that provided them):

tutorials/assets/[tutorial-name]/**

This keeps the code, scripts, and other details separate from the documentation and makes it less annoying to maintain the documentation. e.g. instead of having 5 index.md files open, we'd have 5 files with distinct names.

@IbbyBenali
Copy link
Collaborator

The index.md gives an overview page though currently of the assets in that directory, a bit like a table of contents but then as a "boxes of contents" for the way it looks right now. Maybe when we resolve the way we want to organize our navigation we could change this as well.

@ferrouswheel
Copy link
Contributor Author

In this case they don't... the are the tutorial itself.

Other index.md pages do give an overview and list of cards like you say, but this isn't what I'm complaining about in this instance 😜

@IbbyBenali
Copy link
Collaborator

IbbyBenali commented Mar 21, 2019 via email

@ferrouswheel
Copy link
Contributor Author

Cleaned up some of them in fe2969d

I opted to leave the tutorial directories with assets as they are, because there would be a lot of links to check and update.

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

No branches or pull requests

2 participants