Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukecarrier/mkdocs-theme-bootstrap4
A vanilla Bootstrap 4 theme for MkDocs
https://github.com/lukecarrier/mkdocs-theme-bootstrap4
bootstrap bootstrap4 mkdocs mkdocs-theme
Last synced: about 1 month ago
JSON representation
A vanilla Bootstrap 4 theme for MkDocs
- Host: GitHub
- URL: https://github.com/lukecarrier/mkdocs-theme-bootstrap4
- Owner: LukeCarrier
- License: mit
- Created: 2019-10-02T20:24:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T22:07:46.000Z (over 1 year ago)
- Last Synced: 2024-04-26T23:40:31.420Z (7 months ago)
- Topics: bootstrap, bootstrap4, mkdocs, mkdocs-theme
- Language: HTML
- Homepage: https://pypi.org/project/mkdocs-theme-bootstrap4/
- Size: 2.06 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Bootstrap 4 theme for MkDocs
A vanilla Bootstrap 4 theme.
---
## Screenshot
## Quick start
First install the package:
```
$ pip install mkdocs-theme-bootstrap4
```Then enable it:
```yaml
theme:
name: bootstrap4
```## Configuration
Place these additional options under the `theme:` section of your `mkdocs.yml` configuration to change the theme's behaviour.
```yaml
# Show next/previous links between pages?
next_previous: true
```### Bootstrap features
Some Bootstrap components require the addition of additional CSS classes. To enable these, add the following `plugins` in `mkdocs.yml`:
```yaml
plugins:
- bootstrap4-blockquotes
- bootstrap4-tables
```## Hacking
First, install the dependencies:
* [Python 2](https://www.python.org/downloads/), for some of our dependencies.
* [Python 3](https://www.python.org/downloads/), for the package build process.
* [Yarn](https://yarnpkg.com/en/docs/cli/install), for managing frontend dependencies.Ensure that Python 2 is found on your path before Python 3, else you'll get errors from `node-gyp` later. If you're unable to do this, set the environment variable `npm_config_python` to a command that'll launch Python 2 (`py -2` on Windows, `python2` elsewhere).
On Windows:
* It's easiest to not put Python on your path and instead rely on the [`py` CLI](https://docs.python.org/using/windows.html#python-launcher-for-windows).
* You'll need the build tools necessary to install native dependencies: `npm install -g --production windows-build-tools`.To get completion working in your editor, set up a virtual environment in the root of this repository and install MkDocs:
```
$ pip3 install --user --upgrade setuptools twine wheel
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
```To install the plugin onto a local MkDocs site in editable form:
```
$ pip install --editable /path/to/mkdocs-theme-bootstrap4
```## Upgrading dependencies
To upgrade the dependencies, install `pip-upgrader`:
```console
. venv/bin/activate
pip install -r requirements.dev.txt
```Then proceed to update the dependencies:
```console
pip-upgrade requirements.dev.txt
```The node dependencies can be updated with Yarn:
```console
yarn upgrade
```## Releasing
Build the distributable package:
```
$ python3 setup.py sdist bdist_wheel
```Push it to the PyPI test instance:
```
$ python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
```Test it inside a virtual environment:
```
$ pip install --index-url https://test.pypi.org/simple/ --no-deps mkdocs-drawio-exporter
```Let's go live:
```
$ python3 -m twine upload dist/*
```