From a38cd11ccdbcc7b04f5ff382403aed48931a6efa Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 24 Apr 2025 15:34:22 +0200 Subject: [PATCH] update license pages with full instructions --- .../copyright/recommendations.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/book/installation-and-setup/copyright/recommendations.md b/book/installation-and-setup/copyright/recommendations.md index 68a0fd7..a23439e 100644 --- a/book/installation-and-setup/copyright/recommendations.md +++ b/book/installation-and-setup/copyright/recommendations.md @@ -97,7 +97,24 @@ This page reuses content from {cite:t}`bib_id`. {fa}`quote-left`{ref}` ```` ````` -To make this possible we use the custom admonitions of [the custom named colors sphinx extension](https://teachbooks.io/manual/external/Sphinx-Named-Colors/README.html#admonitions) in combination with a [custom css file](../../_static/attribution.css) in `book/_static/` and the line `named_colors_custom_colors: {'attributiongrey':[150,150,150]}` in `book/_config.yml` under `sphinx: config: ` +To make this possible we use the custom admonitions of [the custom named colors sphinx extension](https://teachbooks.io/manual/external/Sphinx-Named-Colors/README.html#admonitions) in combination with a custom css file. `_config.yml` needs to be configured as follows, making sure to add the `sphinx-named-colors` extension to your environment (e.g., `requirements.txt`): + +```yaml +sphinx: + config: + named_colors_custom_colors: {'attributiongrey':[150,150,150]} + extra_extensions: + - sphinx_named_colors +``` + +To adapt the symbol of the admonition (to double quotes), you can add the following [custom CSS class](../../_static/attribution.css) to `book/_static/attribution.css`: + +```css +/* Attribution */ +div.attribution > .admonition-title::after { + content: "\f10d"; +} +``` (copyright_recc_credits)=