Skip to content

Commit d61291f

Browse files
docs: Update branding and introduce custom layout for docs site
- Renamed the title in `index.md` to "pdfRest API Toolkit Python SDK." - Added a custom sidebar separator via `brand.css` for better navigation grouping. - Configured `mkdocs.yml` to use a new `custom_dir` for overrides and branding. - Introduced `overrides/main.html` to update the page `<title>` dynamically. Assisted-by: Codex
1 parent 038f1c0 commit d61291f

4 files changed

Lines changed: 18 additions & 1 deletion

File tree

docs/assets/stylesheets/brand.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@
2424
/* Body/docs links */
2525
--md-typeset-a-color: #5b2a86;
2626
}
27+
28+
/* Left sidebar grouping: keep Home + Getting Started visually separated
29+
from the rest of the navigation entries. */
30+
.md-sidebar--primary
31+
.md-nav--primary
32+
> .md-nav__list
33+
> .md-nav__item:nth-child(3) {
34+
border-top: 1px solid rgba(12, 12, 12, 0.18);
35+
margin-top: 0.5rem;
36+
padding-top: 0.5rem;
37+
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pdfrest documentation
1+
# pdfRest API Toolkit Python SDK
22

33
Welcome to the docs for `pdfrest`, a Python client for
44
[pdfRest](https://pdfrest.com/).

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ strict: true
77

88
theme:
99
name: material
10+
custom_dir: overrides
1011
logo: assets/pdfrest-logo-dark-bg.png
1112
favicon: assets/favicon.ico
1213
palette:

overrides/main.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends "base.html" %} {% block htmltitle %} {% if page and page.title %}
2+
<title>pdfRest API Toolkit Python SDK | {{ page.title | striptags }}</title>
3+
{% else %}
4+
<title>pdfRest API Toolkit Python SDK</title>
5+
{% endif %} {% endblock %}

0 commit comments

Comments
 (0)