Skip to content

Allow index.md files as index pages #23

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

Merged
merged 1 commit into from
Apr 14, 2018
Merged

Allow index.md files as index pages #23

merged 1 commit into from
Apr 14, 2018

Conversation

jaylinski
Copy link
Contributor

@jaylinski jaylinski commented Apr 14, 2018

Until now, only README.md files got treated as a directory index.

This commit also allows index.md to be used as index files.

Related to #17.

Until now, only `README.md` files got treated as a directory index.
This commit also allows `index.md` to be used as index files.
@filipsobol
Copy link
Contributor

filipsobol commented Apr 14, 2018

Hmm... I like this, but wouldn't it be better if index page was configurable. Something like "index" key in config.js?

@yyx990803 yyx990803 merged commit 49e0ee4 into vuejs:master Apr 14, 2018
@yyx990803
Copy link
Member

I think index/readme are good enough. Sometimes fewer options is better...

@emrahcetiner
Copy link

I think index/readme are good enough. Sometimes fewer options is better...

index/readme md file rendered on gitlab/github repository home page by default.
i want to use readme.md for project readme file, use home.md for vuepress home/index.

@filipsobol 's suggestion is good! vuepress index page can be configurable in config.js, like index key.

@alancwoo
Copy link

I'm confused, is there a way to use index.md as the default content for the landing page, so that readme.md can exist and be used only for the git repo? My site seems to prioritize readme.md over index.md

@veidenberg
Copy link

is there a way to use index.md as the default content for the landing page

The default file seems to be chosen here:

const indexRE = /\b(index|readme)\.md$/i

For some reason, VuePress uses index.md over readme.md in dev mode, but the other way around in build mode.

i want to use readme.md for project readme file, use home.md for vuepress home/index.

Rename the GitHub readme as README.markdown and Vuepress file as index.md or readme.md.

bors bot added a commit to meilisearch/documentation that referenced this pull request Jan 11, 2022
1360: Rename README.md to README.markdown r=dichotommy a=dichotommy

# Pull Request

## What does this PR do?
Fixes #1030 
According to information obtained [here](vuejs/vuepress#2106 (comment))
This solution is also mentioned in [this thread](vuejs/vuepress#23 (comment))

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to MeiliSearch!


Co-authored-by: Tommy Melvin <[email protected]>
@fPkX6F1nGTX
Copy link

I am confused reading this thread in 2024. Does Github allow people to rename README.md to index.md and it will still display on the front of the repo to all visitors?

@fPkX6F1nGTX
Copy link

I am confused reading this thread in 2024. Does Github allow people to rename README.md to index.md and it will still display on the front of the repo to all visitors?

Also if anyone cares to contribute to the discussion on SO, please do so:
https://stackoverflow.com/a/69190614/12763497

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 this pull request may close these issues.

7 participants