-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Split README
into files located at /docs
#1095
Conversation
Wait, I realized a problem. Any link that points to a nested link will break unless that link has its own dedicated file. I thought it would redirect to the parent, but the link only contains info about the inner entry, not the outer one |
@zloirock before proceeding any further, how should the directory tree look like? I need to know which sections deserve their own files, and which "multi-sections" should be grouped in single files. I also need to know when to create inner folders to group multiple files instead of having them on the outer folder |
I'll try to preserve as much links as possible, so lots of files will be created. I'll put all ECMAScript files into an |
In my vision, on each page should be:
I think that docs should contain a directory tree by categories, at least different directories for usage and polyfills. I think that pages should contain more than, for example, now I see at As you can see in #1053 (comment), the root |
Ok, I'll try doing that. But for now I'll "build the base" first, to make it easier to manage |
I noticed there's lots of absolute URLs in the links. I'll make them relative, to minify files, and make the links "adaptive" to forks of this repo branch |
./docs/
(WIP)README
into files located at /docs
(WIP)
I forgot that this file was still unfinished. Sorry. I'll finish it now |
@Rudxain I'm sorry that tris PR still is not merged. It's not because I'm ignoring it or have no time to review it. Looking at the result, I'm still not sure that now it's better than the current monolith - users can be confused or get lost. I'm thinking about adding proper indexes / navigation to it, but I'm still unsure about the best approach. Maybe even a statical site generation from markdown could be better. |
It's fine, don't worry.
I partly agree. Maybe we should use GH-Pages instead? Other repos use that approach. It's more flexible because we can add a nav-bar and a burger-menu. (I currently have no idea how to implement a good-quality nav-bar and burger-menu, I'll need to learn that) |
Sure, in the case of static site generation most likely will be used GH-Pages - and now it's already used for |
Superseded by #1221 I won't delete |
Current plan
Big and "medium" (relatively) sections from the
README.md
will be moved to the/docs/
directory. Categories will have dedicated inner folders where files will be placed, other files will be placed directly atdocs/
if they are their own "category". To preserve as much external links as possible, the index will be the same (almost, because inner links will be moved to indexes at their respective files) and the sections will have headings that, when clicked, redirect to the corresponding file. This is the reason why the branch name isreadme-redirect
Links to more info
#1095 (comment)
mdn/content#17561 (comment)
#1095 (review)
Directory tree
This section is about the planned structure of the
/docs
repo tree. This is subject to change and open to suggestions. Indentation = nesting depth.#
means it's a heading/section, not a file.Related Issues
Fixes #1053
Etc
Other stuff that this PR does is fix some typos and minify URLs