-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Adding file not from docs
folder
#485
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
Comments
Can you tell us your repo's url please @iakovmarkov ? Btw, I read it again, and you must move the "content" to your |
@SidVal it's a private repo on our on-prem bitbucket with a production application, so I can't, sorry :)
Yea, I also think that's the case. I feel it is something that is worth implementing. I can start working on that if @QingWei-Li is OK with it. |
If you want to do this, you must use absolute path. |
This is practically impossible, right? Using abs paths in .md files will work only in case where every developer's environment/folder structure has been set up in the same way. |
@iakovmarkov Any progress on this? We also store most of the |
@kjantzer I actually ended up using a little workaround:
Running |
If you want to deploy that somewhere you anyway need to filter for md files. You probably don't want to make everything in your |
Hey you all, using symlinks works fine. In your docs folder: cd ./docs
ln -s ../src creates a linked Expanding on @timaschew's idea, you could also make a build step to copy Another idea is to configure your static HTTP server not to serve certain files (after linking src f.e.) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is a really useful feature for self-documenting your source code, or adding snippets or embeds from non-public stuff that you want to partially expose. Probably 20% of people that use docsify would use this, they just don't know how close docsify is to being able to implement it... I mean when I read you allow includes and fragments already I was shocked this feature didn't exist. With the existing code fragments and includes, this literally lets you point to your source code and drop pieces anywhere... For example, this works, but you have to expose your entire source code to the public... Where as, if you allowed a proxy, mapping in a folder, or simply allowed relative paths, the code could be kept private... |
Hello @onexdata! What are you proposing exactly? Relative paths won't work if the static server is not able to serve those files.
What's the idea here? I don't see why not to allow relative paths there if that's something not yet supported (PRs welcome!), but I don't see how that solves the server issues. |
It'd be possible to scan all the docs files, and copy across any referenced file that exists in the source files into the docs folder. This works well if the file is linked using a root-relative link, e.g. example gist - https://gist.github.com/ajs139/659ce8b37f5ab1c112d1b59ab6c66013 If doing this, it's probably worth adding the source directories (e.g. |
Hey guys.
Thank you for this nice tool. I've tried to use it in our projects and found one thing that I'm probably missing.
Our docs are located close to the code itself, like
./src/modules/resources/README.md
. I want to include this file in a sidebar like this* [Resources](../src/modules/resources/README.md)
, but it doesn't work - I'm getting 404 on that page. I've tried to play withpath
config variable, but it feels it has 0 effect on anything.Is there any way to do this in current version of docsify? If not, is this something am I welcome to implement?
Cheers!
The text was updated successfully, but these errors were encountered: