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

Move the documentation to ReadTheDocs #312

Closed
virtualtam opened this issue Aug 3, 2015 · 20 comments
Closed

Move the documentation to ReadTheDocs #312

virtualtam opened this issue Aug 3, 2015 · 20 comments

Comments

@virtualtam
Copy link
Member

As per #294:

  • the online documentation has been spread over several pages
    • so is the local documentation
  • both GitHub and the local copy lack a search feature
  • handling of relative links is fuzzy with pandoc

ReadTheDocs uses the Sphinx documentation engine and supports:

  • generation from SCM-hosted wikis
  • Markdown syntax
  • GIt webhooks (doc is updated at each commit)
  • versioning: one version of the doc per branch and release
  • exporting to HTML, PDF and Epub

Original issue content:

This is a follow-up to #294:

  • the Wiki content has been spread over multiple pages and sections
  • so is the local documentation copy
  • it lacks a global Search feature, to quickly find information

Possible solutions (suggestions are welcome, it's been ages since I haven't written any JS ^^):

@ArthurHoaro
Copy link
Member

Isn't it a bit too much? Shipping jQuery and/or a client search engine lib for the documentation doesn't seem good to me. If I really need to search into the doc, I can either use Github, grep, find or even my favorite text editor.

@nodiscc
Copy link
Member

nodiscc commented Aug 5, 2015

  • If I really need to search into the doc, I can either use Github, grep, find or even my favorite text editor.: github wiki has no search feature, most users will not use grep/find, text editor or document/html viewer remains the best option but
  • Shipping jQuery and/or a client search engine lib for the documentation doesn't seem good to me either

Could we switch back to a single-page documentation (still separate user/dev documentation)? You can search it with a text editor/browser's Ctrl+F (not possible in multi-page docs). E.g. PDF documentation works well, and PDFs are single-page (well not really but they are flat). Single page allows you to take a quick look at the full contents by scrolling. Problems: TOC can get quite large (Add Back to top links?). Is there something wrong with this?

Semi-related

I'm investigating pandoc templates for the HTML doc

@virtualtam
Copy link
Member Author

Yes, it's definitely overkill :)

@nodiscc wrote on #294:

About switching to multiple pages + sidebar: I somehow miss the possibility to search for a word (Ctrl+F) in a single page (for example I was searching for htaccess, which was moved to the Security page

If it's not a problem not to have a search feature for the offline doc, this issue can be closed as Won't fix.

@nodiscc
Copy link
Member

nodiscc commented Aug 5, 2015

Is a single (1 dev/1 users) page layout ok? (+ moving sections/scripts). I can take care of it really quick (https://packagecontrol.io/packages/MarkdownTOC helps for the TOC)

The new documentation is great, it's just about the page layout.

@virtualtam
Copy link
Member Author

If this navigation issue is specific to offline documentation, why not generate it in a more appropriate format?

E.g.:

  • concatenate all pages
  • use page titles as section names
  • generate a single HTML and/or PDF document

@nodiscc
Copy link
Member

nodiscc commented Aug 5, 2015

It also affects online documentation (eg. https://github.com/shaarli/Shaarli/search?utf8=%E2%9C%93&q=htaccess does not return results from the wiki)
Edit: am I missing a hidden search feature somewhere?

@virtualtam
Copy link
Member Author

Sadly, no... there seem to be no search feature for GH wikis O_o

Nor is the code indexed: https://github.com/shaarli/Shaarli/search?q=htaccess&type=Code&utf8=%E2%9C%93

Search is available through the github-wiki-search browser plugin, which requires some additional resources (Greasemonkey on FIrefox)

@virtualtam
Copy link
Member Author

What about generating proper documentation on Read The Docs?

It uses the Sphinx documentation engine and supports:

  • generation from SCM-hosted wikis
  • Markdown
  • GIt webhooks (doc is updated at each commit)
  • versioning: one version of the doc per branch and release
  • exporting to HTML, PDF and Epub

@nodiscc
Copy link
Member

nodiscc commented Aug 6, 2015

ReadTheDocs looks ok to me, if it solves the search problem, and if local documentation can be updated from it.

@virtualtam
Copy link
Member Author

Which priority should this have? Would milestone 0.7 or 0.8 be OK?

@nodiscc
Copy link
Member

nodiscc commented Aug 6, 2015

Current documentation works, so no hurry :)

@virtualtam
Copy link
Member Author

Thanks :)
I'm moving this issue to 0.7.0 and will try to provide a demo documentation on RTFD in a couple weeks

@virtualtam virtualtam modified the milestones: 0.7.0, 0.5.1 Aug 6, 2015
@virtualtam virtualtam changed the title Add full-text search for local documentation Move the documentation to ReadTheDocs [EDIT] Aug 6, 2015
@virtualtam virtualtam changed the title Move the documentation to ReadTheDocs [EDIT] Move the documentation to ReadTheDocs Aug 6, 2015
virtualtam referenced this issue Sep 5, 2015
Additions:
 - Installation/Download: how to get Shaarli
 - Community software: ShaarliOS app

Modifications:
 - Installation/Server requirements: PHP 5.4 EOL, PHP 7 announcements
 - Installation/Server configuration: improve Nginx security
 - Troubleshooting: PHP sessions on `free.fr`

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
@nodiscc
Copy link
Member

nodiscc commented Oct 1, 2015

Be aware of http://alex.hyperiongray.com/posts/302352-pwn-the-docs (vulnerability in Readthedocs)

@virtualtam
Copy link
Member Author

Thanks @nodiscc for the link!

The overall idea of this issue is to have the documentation using a flexible engine format (Sphinx); once done, static pages can be generated by anyone (with minimum Python & Markdown knowledge), and hosted anywhere (RTFD, github.io, personal server, etc.).

@virtualtam
Copy link
Member Author

Just stumbled upon MkDocs, which:

  • is a doc-generation tool similar to Sphinx
  • takes Markdown as input (Sphinx uses reStructuredText); this is a huge plus as it would avoid converting the whole documentation
  • is supported by ReadTheDocs (see Build Process)
  • also provides tools to deploy documentation to other hosting services (e.g. GitHub Pages)

As I'll be toying with documentation generators & CI integration for several projects in the upcoming weeks, I'll use this thread to share my thoughts & feedback regarding the different tools & approaches ;-)

@mro
Copy link

mro commented Jan 3, 2016

know that one? http://xkcd.com/1343/

@nodiscc
Copy link
Member

nodiscc commented Jan 3, 2016

As long as the manual is searchable (either built in search, or CTRL+F on a single page) I think this nice. Having to maintain only a single markdown documentation for both the website and the wiki is a must have.

@nodiscc
Copy link
Member

nodiscc commented May 4, 2016

Note for self: I have a working* GH-wiki to HTML documentation (using make and pandoc) setup at https://github.com/RequestPolicyContinued/RequestPolicyContinued.github.io (site at https://requestpolicycontinued.github.io/) (build.sh and Makefile).. *It has some bugs.

I will try to improve the solution for both shaarli and requestpolicy so as not to duplicate effort. Progress will be tracked at https://github.com/nodiscc/pandoc-ghwiki-html

Mkdocs is also interesting

@ArthurHoaro ArthurHoaro modified the milestones: 0.7.0, 0.7.1 May 14, 2016
@virtualtam virtualtam modified the milestones: 0.10.0, 0.8.0 Jun 16, 2016
@nodiscc nodiscc self-assigned this Jun 29, 2016
@virtualtam
Copy link
Member Author

RTFD also provides a Markdown parser for Sphinx/docutils:

I stumbled upon it while looking at sources for the Mattermost IM service:

Though I'm not a fan of having mixed rST / MD sources, this could help when converting existing resources.

@virtualtam
Copy link
Member Author

Closed per #772

virtualtam added a commit to virtualtam/Shaarli that referenced this issue Aug 1, 2017
Relates to shaarli#312
Relates to shaarli#772

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
virtualtam added a commit to virtualtam/Shaarli that referenced this issue Aug 1, 2017
Relates to shaarli#312
Relates to shaarli#772

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
virtualtam added a commit to virtualtam/Shaarli that referenced this issue Aug 2, 2017
Relates to shaarli#312
Relates to shaarli#772

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
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

4 participants