GithubHelp home page GithubHelp logo

isabella232 / mkdocs-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joyent/mkdocs-template

0.0 0.0 0.0 22 KB

Template for making documentation sites using markdown, mkdocs, and material.

License: Mozilla Public License 2.0

Makefile 100.00%

mkdocs-template's Introduction

mkdocs-template

This is a template repo you can use for documentation. It uses mkdocs with the material theme.

Getting Started

  1. Create a new private repo on GitHub for your documentation.

  2. Clone this repo to your workstation.

     git clone https://github.com/joyent/mkdocs-template my-team-docs
    
  3. Set the remote to the new repo you created in step 1.

     git remote remove origin
     git remote add origin [email protected]:joyent/my-team-docs.git
    
  4. Edit mkdocs.yml and package.json to reflect your new documentation project.

  5. Run make deps to install the required dependencies.

  6. Replace the contents of this README.md, and publish your first commit.

     echo "# my-team-docs" > README.md
     git add .
     git commit -m'First commit of My Team Docs'
     git push -u origin master
    

Adding Content

Adding content is simple.

  • Add markdown files to the docs directory.
  • Edit mkdocs.yml to define your site navigation. (Optionally, you can remove the nav section and a single flat navigation will be rendered.)

There are some handy make targets.

  • make by itself will generate your site.
  • make check will check the contents of docs with markdownlint
  • make serve will start up a web server on http://127.0.0.1:8000 so you can preview your site.

Publishing Content

There's no specific recomendation for publishing content. There are a number of easy options.

  1. rsync the site directory to a web server (make sure it has approrpriate authentication as needed).
  2. Clone your repo onto a web server.
  3. Use this as the gh-pages branch of your a project
  4. Just browse the markdown directly on github without pre-rendering it (though you won't get any features of mkdocs that way).

Requirements

The only requirements are node.js (for markdownlint) and python 3.7 virtualenv (i.e., virtualenv-3.7, for mkdocs). Having node and virtualenv-3.7 installed, simply run make deps to install the additional components.

Other Information

This repo is pre-configured to create a github workflow that will check all pull requests with markdownlint. This helps keep content clean for maximum portability between markdown rendering engines.

mkdocs-template's People

Contributors

bahamat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.