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

link a file at the root of the project #1373

Closed
JOduMonT opened this issue Jan 7, 2018 · 6 comments
Closed

link a file at the root of the project #1373

JOduMonT opened this issue Jan 7, 2018 · 6 comments
Milestone

Comments

@JOduMonT
Copy link

JOduMonT commented Jan 7, 2018

Hi everyone;

I tried to make a file which is at the root of my project into mkdocs
let's me try to explain

mkdocs render everything inside ./docs/*
my file is at the root level which like ./norendering.md instead of ./docs/rendering.md

an example I found is https://github.com/mkdocs/mkdocs/blob/master/CONTRIBUTING.md what if I want this file appear inside the website like this one https://github.com/mkdocs/mkdocs/blob/master/docs/index.md

regards!

Jonathan

ps: if rendering is not the appropriate words tell me how to speak python/jinga/mkdocs :)

@waylan
Copy link
Member

waylan commented Jan 7, 2018

This appears to be related to #1134 and #1279. As there is currently no open issue for this, I'll leave this open so we don't forget about it.

@waylan waylan added this to the 1.0.0 milestone Jan 17, 2018
@waylan waylan mentioned this issue Jun 8, 2018
@waylan waylan closed this as completed in 34ef3ca Jun 28, 2018
@JOduMonT
Copy link
Author

wow I just saw (34ef3ca#diff-55f7e7bab4ecafd524c20778d6920fdaR43)

I can't wait to test it :)

Thanks!

@waylan
Copy link
Member

waylan commented Jul 26, 2018

@JOduMonT a beta has been released. Please do test it out. To install do:

pip install --upgrade mkdocs=1.0b1

@cruisercoder
Copy link

I see how I can symlink to a README.md above docs at the root of my repo, but this doesn't work when that file has links to other markdown documents relative to the README.md at the root of the tree (not the docs dir). Is there a solution for this?

@deltahedge1
Copy link

after sometime I found some extensions which did the trick, using pymdown-extensions and specifically the snippets ext you can now include files like README.md and changelog.md from your root directory.

https://facelessuser.github.io/pymdown-extensions/extensions/snippets/

@ssbarnea
Copy link

@deltahedge1 Sadly this approach does not work with mkdocs monorepos and probably neither with simple inclusion.

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

No branches or pull requests

5 participants