DocumentUp icon indicating copy to clipboard operation
DocumentUp copied to clipboard

Use a different file than README.md for generating documentation

Open leoweigand opened this issue 10 years ago • 2 comments
trafficstars

First of all, thank you @jeromegn for this awesome tool / service. I think it would make sense for DocumentUp to have an option to generate the docs from another file than README.md, like DOCS.md, as one may want to keep the README file small or to contain other information than the whole docs.

I imagine something like:

name: DocumentUp
file: DOCS.md

Could of course also be filepath or something similar.

Another question not worth opening a separate issue for: is it possible to use .documentup.json instead of .documentup.yml? I saw this in https://github.com/wout/svg.js.

leoweigand avatar Jul 01 '15 21:07 leoweigand

Hey there,

Technically, you can already do something like that by using documentup.com/username/repo/path/to/markdown/file

However, it's not yet possible to change the root file being rendered. I will be possible though :) Def on the roadmap.

You can use a .documentup.json file but it's sort of deprecated. Is there a reason for this? Right now DocumentUp will work with 3 different file names for the configuration, but yaml is faster, simpler to write in my opinion. It's also less error prone.

jeromegn avatar Jul 06 '15 14:07 jeromegn

Alright that will be a good workaround until it is possible to change the root file. No reason for json at all, yaml is fine. I was just curious.

leoweigand avatar Jul 06 '15 14:07 leoweigand