Template contains mkdoclingo.css.
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- css
- Domain
- documentation
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.
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.
- Dominant language
- Python
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
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.
More from potassco/python-project-template
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
potassco/python-project-template#54 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
potassco/python-project-template#42 · 2 comments · 1 reaction ·
-
Publish docs Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
potassco/python-project-template#29 · 5 comments ·
All issues in potassco/python-project-template
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100