Skip to content

mneinast/TraceBaseDocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TraceBaseDocs

Documentation for TraceBase users.

Generating the Documentation

Documentation is drafted in markdown using Obsidian, or other markdown editors. This set of markdown documents is used to generate a static site using MkDocs (with a readthedocs template). Currently, this site is only served locally. The site updates live as changes are made to the markdown documents in Obsidian (or other markdown editors).

Setting up the obsidian vault

  1. Install the Obsidian electron app.
  2. Launch the app, select open another vault
  3. Select the TraceBaseDocs folder within this repo.
  4. Confirm the following settings to ensure compatability between Obsidian and mkdocs:
  • Settings > Files and Links > New Link Format = Relative path to file
  • Settings > Files and Links > Use [[Wikilinks]] = toggled off

These settings ensure consistent link behavior between Obsidian and mkdocs. Settings are saved in the .obsidian folder within this repo.

Set up mkdocs

To generate the static site from these markdown documents, install mkdocs and related plugins.

  1. pip install mkdocs (requires Python and pip as package manager)
  2. pip install mkdocs-roamlinks-plugin (roamlinks adds support for some Obsidian links)

Serve the static site

Use mkdocs to generate the static site (locally).

  1. python mkdocs serve --verbose (verbose is optional but recommended)

The site can be accessed at http://127.0.0.1:8000/repo-name/

Deploy the site

Use mkdocs to deploy the site to this repo's github pages.

  1. python mkdocs gh-deploy
  2. site is deployed at https://mneinast.github.io/TraceBaseDocs/

Known Issues and Workarounds

Markdown notation includes some quirks and Obsidian interpretation of markdown is slightly different than mkdocs in some cases. Here is a list of differences between Obsidian and mkdocs / basic requirements for markdown documentation:

  • Obsidian supports links to other markdown pages inside headers, but mkdocs does not.
  • Brackets ([) in obsidian text need to be escaped with \
  • Bullets in Obsidian do not require an extra line, but in mkdocs they do.
  • To add a new line without creating extra white space in mkdocs, include <br/> at the end of the line. Obsidian does not require this.

About

Documentation for TraceBase Users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published