An open API service indexing awesome lists of open source software.

https://github.com/jd-apprentice/mkdocs-template

Template to startup a documentation site with mkdocs
https://github.com/jd-apprentice/mkdocs-template

Last synced: 5 months ago
JSON representation

Template to startup a documentation site with mkdocs

Awesome Lists containing this project

README

          

# MKDocs Starter

Template to startup a documentation site with mkdocs

![sample](assets/sample.png)

## Contains

- base setup
- [github-actions](https://github.com/peaceiris/actions-gh-pages/tree/v4/)
- [mkdocs-material](https://squidfunk.github.io/mkdocs-material/)

## Configuration

Change the `site_name` in `mkdocs.yml`

### Not using a custom domain

If you don't have a domain, remove the property the `cname` in `.github/workflows/ci.yml`

### Using a custom domain

Change the `cname` in `.github/workflows/ci.yml`

In case you are using a custom domain you must create the CNAME in your DNS resolver

![domain](assets/domain.png)

You point the CNAME (the one we are using at .github/workflows/ci.yml) to your github.io page which is normally `.github.io`

### Enable GitHub Pages

After the first push, a branch with the name of `gh-pages` will be created, now we do the following

![gh-pages](assets/gh-pages.png)

### Theme

If you don't want to use material theme, change the `theme` in `mkdocs.yml` and `.github/workflows/ci.yml`
You can read more about it [HERE](https://www.mkdocs.org/user-guide/choosing-your-theme/)

## Workflow

![idea](assets/idea.png)

```shell
🌳 mkdocs-template/
┣ 📁 .github/
┃ ┗ 📁 workflows/
┃ ┗ 📄 ci.yml
┣ 📁 docs/ -- Create your docs here
┃ ┗ 📄 index.md
┣ 📄 LICENSE
┣ 📄 README.md
┗ 📄 mkdocs.yml
```