-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rename "README.md" files to "index.md" #1021
Comments
Both of them are supported, using |
In this case it should be explained in the docs. You probably missed the edit I submitted just when you closed this. |
Also, please check if
If I understand it correctly, index.md breaks the edit links. |
Our original intention is that writing two solutions in the document at the same time may make the novice fear: which one should I choose? If you feel that there is a suitable location in the document to declare this choice, welcome to contribute for that. What you said later is really a problem, but it doesn't seem to be easily fixed. We have to pass the type info(index or README) from server side to client side, which is not very elegant. |
To avoid problems, it is recommended that you use the |
My suggestion here is to use index.md as the only standard for root content files. README is as described not a good name and can cause conflicts in github environments. Replace README with index, then add a paragraph in the docs that explains the purpose and usage of index.md files. I'm willing to contribute to the docs once I've learned more about it, for now I can only help with reporting issues.
Alright, good to know. |
This is a top hit on Google, but how do you use On Github and Gitlab (and more?), the So, I want to disable what VuePress does out of the box (converting a README.md to an index.html) Is this easily possible? (And why on earth is it not the default behaviour!?) |
Fortunatley the default filename selection is slightly different for VuePress and Github. To target markdown files for both, rename the GitHub readme as |
Thanks to #23 I figured out that I don't want to make changes because this may conflict with future plugins? Coming from hugo using 'index.md' is a page and '_index.md' is a list page. In vuepress by the looks of it you have to render a component on Page.vue to make it list page. I'm sure there's a way to use frontmatter instead <Posts page="code" /> |
I just asked a question over here but if anyone on this thread can answer, please do so: |
Also please contribute to discussion here which implies index.md would NOT be allowed (as of late 2021): |
Feature request
README.md
is too specific for generic root content files and can be misleading. #23 allows to useindex.md
.What problem does this feature solve?
README
is the established name for contextual documentation files. Using this name can be misleading for newcomers andindex.md
makes it easier to understand what the purpose of the file is.I understand that everyone is free to use either
README
orindex
but note that many people will follow your example here, check out how it's done in yourdocs
and at least for me it was not obvious while reading the documentation that README files are treated as index files or that the naming is meaningful at all.https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/theme-default/components/Page.vue#L127 probably needs to be changed, too.
The text was updated successfully, but these errors were encountered: