-
Notifications
You must be signed in to change notification settings - Fork 709
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
Folder of markdown doc #247
Comments
Does #63 help at all? |
It look to be a solution but I can't make it work.
and docs2 contains 2 files typedoc.json is:
But I can't found demo1 or demo2 on generated doc in docs folder. Moreover (it's an other error but probably a mess of my config), and because i am writting here all the conf, I always see theses "errors", that i want to exclude: |
The doc states:
So: do you refer to
I did not use the feature myself, but that is what I would expect to work. This should then lead to demo1.md being searched and included into documentation. But maybe that is not even what you originally wanted? I understood it as if you wanted to integrate a complete doc structure, which - if I guess correctly - you want to be inserted e.g. in the navigation, so that you have typedoc and your documentation accessible in one place? |
It's working, I can see the included content on the readme but it's I was expecting. And thee readme is also shown on the git repository first page but the [[include:demo1.md]] will not be shown on it. |
Guys were you able to make the includes work? I try it like this with no success here is how I run typedoc
in my mdDocs I have
But nothing from my md file is being show in the generated docs only a line like this is being added
|
Including a MarkDown file by referencing it inside of my API documentation works for me. However, I think the original intent of this issue (and what I'm looking for as well) is to have a folder of MarkDown files that can be listed in the table of contents without being explicitly part of the API. For example, if you wish to make the output of TypeDoc your complete documentation solution, you may want to include a page for architecture design, acknowledgements, etc. That information could go in the README, but for many projects it would be nice to split up into separate pages. |
Any update on this? Will TypeDoc ever support a folder of Markdown docs together with the code generation? |
A very hacky solution:
Credit goes to jaykaron for the find |
Heres a quick script that converts Markdown files to one big TS file with empty namespaces. #!/bin/bash
# takes all the input files and places them within block comments
# on empty namespaces named the same as the filename (without the .md)
# and spits it out into stdout
# usage 'bash markdownToTs.sh *.md > someTsFile.ts'
while test $# -gt 0
do
echo '/**'
cat $1
echo '*/'
file_name=$1
module_name=${file_name%???} # remove .md ending
echo "namespace $module_name {}"
shift
done For example for file # Test 1
- a
- b
- c it outputs: /**
# Test 1
- a
- b
- c*/
namespace test1 {} |
Another possible solution here:
Not much extra work required but get a perfectly look and unhacky results. |
Any news for a native way for this? This should be a must. |
This is next on my todo list once library mode (#1184) is done, but unfortunately I only have a couple hours a week to work on this project... |
I wrote a TypeDoc plugin that I think might solve this need: |
Right now, I'm using this system, to convert files in a standard folder Package.json: {
"scripts": {
"predoc": "for f in $(find documents -type f | grep .md); do npx marked -i $f -o $(echo $f | sed -rne 's/.md/.html/p'); done",
"doc": "rm -rf ./docs && npx typedoc"
}
} typedoc.json {
"media": "documents"
} Then I'm referencing the files through |
https://github.com/mipatterson/typedoc-plugin-pages looked perfect, but isn't compatible w/ v0.22 and seems abandoned. Anyone else know of a better alternative that supports pages? |
@tony-scio and all others, this seems to work pretty well: https://www.npmjs.com/package/@knodes/typedoc-plugin-pages it's not defined as a theme but as a plugin, which is nice, because it actually allows to use any theme with the tutorials addition |
yes, this works pretty well with 0.23.1: https://knodescommunity.github.io/typedoc-plugins/modules/_knodes_typedoc_plugin_pages.html |
https://github.com/tgreyuk/typedoc-plugin-markdown/tree/master/packages/typedoc-plugin-markdown is another option that looks well maintained. I'm using it for one of my projects at the moment. |
I have extra markdown files in my repository like |
This feature is coming to 0.26, which is available to try in beta now: 🎉 #2567 |
Is it possible to include a folder of documents writted in markdown ?
A bit like githubs wiki to be able to write more files than only one readme big file.
The text was updated successfully, but these errors were encountered: