Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from ponylang/customization-options
Browse files Browse the repository at this point in the history
Add basic customization options to README
  • Loading branch information
jemc authored May 26, 2018
2 parents 30206f4 + b08178a commit d17f178
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,58 @@ pip install mkdocs-ponylang
In your `mkdocs.yml` file, change the theme:

```yaml
theme: ponylang
theme:
name: ponylang
```
### Customization
#### Table of contents
```yaml
# Enable permalinks
markdown_extensions:
- markdown.extensions.toc:
permalink: true

# Set maximum depth
theme:
max_toc_depth: 2
```
#### Palette
```yaml
theme:
palette:
primary: brown
accent: amber
```
You can choose from primary and accent colors listed [here](https://squidfunk.github.io/mkdocs-material/getting-started/#color-palette).
#### Icons
```yaml
theme:
favicon: asserts/image/logo.png
logo:
icon: cloud
```
Logos can be images or Material icons (more info [here](https://squidfunk.github.io/mkdocs-material/getting-started/#logo)).
#### Source repository
```yaml
repo_name: ponylang/ponyc
repo_url: https://github.com/ponylang/ponyc
```
#### Other customizations
Extra customization options are available in the [Material theme documentation](https://squidfunk.github.io/mkdocs-material/getting-started/).
## Development
You must have `virtualenv` and `npm` installed.
Expand Down

0 comments on commit d17f178

Please sign in to comment.