X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=c5dee80ec6995101a8b19b3c13b219c4bfff670e;hb=refs%2Fpull%2F912%2Fhead;hp=1ddd60f8a602766771405fada0f845e063594550;hpb=53ed6d7d1e678d7486337ce67a2f17b30bac21ac;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index 1ddd60f8..c5dee80e 100644 --- a/Makefile +++ b/Makefile @@ -192,25 +192,12 @@ doxygen: clean @rm -rf doxygen @( cat Doxyfile ; echo "PROJECT_NUMBER=`git describe`" ) | doxygen - -### update the local copy of the documentation -doc: clean - @rm -rf doc/md/ - @git clone https://github.com/shaarli/Shaarli.wiki.git doc/md - mv doc/md/Home.md doc/md/index.md - @rm -rf doc/md/.git - ### Convert local markdown documentation to HTML # # For all pages: # - convert GitHub-flavoured relative links to standard Markdown # - generate html documentation with mkdocs htmlpages: - # Rename local [[links]] to regular links. - @for file in `find doc/md/ -maxdepth 1 -name "*.md"`; do \ - sed -e "s/\[\[\(.*\)\]\]/[\1](\1)/g" "$$file" > doc/md/tmp.md; \ - mv doc/md/tmp.md $$file; \ - done - python3 -m venv venv/ bash -c 'source venv/bin/activate; \ pip install mkdocs; \ @@ -218,4 +205,5 @@ htmlpages: find doc/html/ -type f -exec chmod a-x '{}' \; rm -r venv -doc_html: authors doc htmlpages +doc_html: authors htmlpages +