Skip to content

Commit

Permalink
Fix keyword colors (#29)
Browse files Browse the repository at this point in the history
Use a custom CSS file to emphasize keywords in the reference
documentation and keywords between backticks.

Drive-by:
* Fix the Makefile to prevent the venv target to run unnecessarily.
  • Loading branch information
rgreinho authored Feb 4, 2019
1 parent 1461818 commit 9ee69fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Move the tests directory to the root of the project.
- Restructure the documentation in a more sensible way.
- Use the [aiohttp](https://github.com/aio-libs/aiohttp-theme) theme for the documentation.
- Use a custom CSS file to emphasize keywords in the reference documentation and keywords between backticks.

### Fixed

- Fix the `Makefile` to prevent the `venv` target to run unnecessarily.

### Removed

Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ test: venv ## Run the unit tests

setup: venv ## Setup the full environment (default)

venv: venv/bin/activate ## Setup local venv
venv: venv/bin/python ## Setup local venv
echo "[ -f $(VENV_BIN)/postactivate ] && . $(VENV_BIN)/postactivate" >> $(VENV_BIN)/activate
echo "export PYTHONBREAKPOINT=bpdb.set_trace" > $(VENV_BIN)/postactivate
echo "unset PYTHONBREAKPOINT" > $(VENV_BIN)/predeactivate

venv/bin/activate: requirements.txt
venv/bin/python: requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate \
&& pip install --upgrade pip setuptools \
Expand Down
5 changes: 5 additions & 0 deletions {{cookiecutter.project_name}}/docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ code.descname {
color: #3cba54;
}

cite {
color: #4885ed;
font-weight: bold;
font-style: normal;
}

0 comments on commit 9ee69fb

Please sign in to comment.