potassco / potassco/python-project-template
Template contains mkdoclingo.css.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Issue
The template currently contains the file:
https://github.com/potassco/python-project-template/blob/master/docs/_custom/css/mkdoclingo.css
This means that every project that starts with the template overrides the css provided by mkdoclingo.
One such example is:
code.doc-clingo-symbol-predicate::after {
content: "predicate";
color: #ca91bf
}
which creates a label predicate. This label is used to show that something is a predicate and currently occurs in front of every link to a predicate in the table of contents (TOC).
Having the entire word predicate in front of every link is very verbose and takes up much of the space reserved for the TOC, resulting in unnecessary line breaks.
Additionally, this forces a very specific color.
For this reason the same css in mkdoclingo looks like this
code.doc-clingo-symbol-predicate::after {
content: "P";
color: var(--doc-symbol-predicate-fg-color);
}
Here, the content is only P and the color is applied dynamically from a variable.
Solution
I think the file should be removed entirely. In most cases, mkdoclingo should be responsible for the styling of the sections it provides. Only if custom styling is absolutely necessary/wanted should parts of mkdoclingo be overridden.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting docs/_custom/css/mkdoclingo.css and compare it with the styling provided by mkdoclingo. Remove the template CSS file, then verify that projects generated from the template no longer override mkdoclingo's predicate labels or colors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100