Skip to content

tobyhede/docsify-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docsify Template

Tutorial on how to build a docs site with Docsify-JS and Github Pages, including an easy quickstart template

Made with latest Docsify GitHub tag MIT license

Docs site:

This project will guide you on how to convert your project's docs folder into a pretty and elegant docs website. This project's own docs site is built on Docsify-JS so serves as a good example.

🎯 Project aims

The idea is to:

  • add as little code and configuration as possible
  • make it easy to maintain
  • quick to get setup on existing projects
  • have no layout files
  • reduce dependencies

The docs site tool used here is Docsify-JS which is a frontend JS library written in VueJS. But if you have never used before or never coded in JS before, you'll be guided through. The only JS you need to write in your config values. You also need to edit some HTML values and possibly write a YAML file for your navbar, which again is more configuration than code.

This project's tutorial covers the basics and provides minimal setup instructions. You can add the quickstart project to your existing docs folder. If you doc files are markdown files, you don't have to rename them and their formatting can mostly stay the same i.e. no frontmatter or special syntax and the pages still render well as plain markdown even. But some links may need updating since /docs folder is now the root of the app.

Unlike static site builders like Jekyll or Hugo, you do not need to install or run a site generator or change the formatting or metadata of your markdown files. Your also don't need any separate config file - the configuration is handled in the index.html page, which is also where dependencies are fetched in the browser and where the app starts.

Docsify works as a single-page application on this one page - data from your markdown files is pulled in and displayed within the Docsify UI shell. There are no template layout files to manage and you can choose from some themes easily without things breaking like when you switch themes in other static site generators.

👩‍🏫 Follow the tutorial

The tutorial is available in two forms:

  • Github Pages: docs site. This also live demo of the kind of site you would have after completing the tutorial.
  • Project docs: View the docs as plain markdown format in the repo, either locally or on Github. See the docs directory.

The tutorial references the quickstart directory at the project root, in case you want to see that.

See also the Nested Example section for understanding links in markdown and the sidebar.

Contributing

The repo is open for accepting contributions through a Pull Request.

About

Tutorial on how to build a docs site with Docsify-JS and Github Pages, including an easy quickstart template

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 97.0%
  • Makefile 3.0%