← Winnitude! Search  ·  Reader Mode (530 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 43 LINKS

GitHub - encode/mkdocs

Repository navigation

mkdocs
Public

About

www.encode.io/mkdocs/

Resources

Readme Activity Custom properties

Stars

37 stars

Watchers

5 watching

Forks

3 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


130 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github/ workflows .github/ workflows    
docs docs    
scripts scripts    
src/ mkdocs src/ mkdocs    
tests tests    
.gitignore .gitignore    
pyproject.toml pyproject.toml    
requirements.txt requirements.txt    
uv.lock uv.lock    

Repository files navigation

MkDocs

MkDocs is a smart, simple, website design tool.

Installation

To install MkDocs, run the following command from the command line:

pip install mkdocs --pre

This will install the version 2.0 pre-release. For full installation steps, including using uv and troubleshooting common issues, see the Installation Guide .

Getting started

  1. Create a docs/README.md page.
  2. Run mkdocs serve to view your documentation in a browser.
  3. Run mkdocs build to build a static website ready to host.

Writing your docs

  1. Create additional markdown pages.
  2. Use relative interlinking between pages.
  3. Include images and use relative interlinking from pages.

MkDocs supports GitHub Flavored Markdown for page authoring.

Styling your docs

  1. Create a templates/base.html to customise the styling.
  2. Include css and javascript to serve static files.

MkDocs uses Jinja templating for HTML rendering.

A starting point can be as simple as...

<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{{ page.toc.title }}</title>
        <link rel="stylesheet" href="{{ '/css/default.css' | url }}">
    </head>
    <body>
        <main>
            {{ page.html }}
        </main>
    </body>
</html>

About

www.encode.io/mkdocs/

Resources

Readme Activity Custom properties

Stars

37 stars

Watchers

5 watching

Forks

3 forks Report repository

Releases

Packages

Used by

Contributors

Languages