Skip to content

Commit 06e974b

Browse files
committed
Add brand colors and fix title display
Now, primary color is the Pulp blue. Also, the "Pulp Project" on the header of the site was broken as a side-effect of hiding h1 titles on section pages with "display: none". Closes #22
1 parent cf0ee77 commit 06e974b

File tree

8 files changed

+169
-9
lines changed

8 files changed

+169
-9
lines changed

src/pulp_docs/data/mkdocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repo_name: pulp/pulpcore
66
docs_dir: docs
77
theme:
88
name: material
9-
logo: pulp-docs/docs/assets/logo.png
9+
logo: pulp-docs/docs/assets/pulp_logo_icon.svg
1010
favicon: pulp-docs/docs/assets/favicon.ico
1111
features:
1212
- content.code.annotate
@@ -25,7 +25,7 @@ theme:
2525
palette:
2626
- media: "(prefers-color-scheme: light)"
2727
scheme: default
28-
primary: indigo
28+
primary: custom
2929
accent: black
3030
toggle:
3131
icon: material/toggle-switch-off-outline

src/pulp_docs/mkdocs_macros.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def prepare_repositories(TMPDIR: Path, repos: Repos, config: Config):
111111

112112
# Copy core-files (shipped with pulp-docs) to tmpdir
113113
shutil.copy(
114-
repo_sources / repos.core_repo.name / SRC_DOCS_DIRNAME / "index.md",
114+
repo_sources / "pulp-docs" / SRC_DOCS_DIRNAME / "index.md",
115115
repo_docs / "index.md",
116116
)
117117

+96
Loading

staging_docs/css/extra.css

+8-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@
2929
text-align: center;
3030
margin-inline: auto;
3131
}
32+
.hide-h1 {
33+
position: absolute;
34+
left: -999px
35+
}
3236

33-
.landing-page-h1 {
34-
display: None;
37+
:root {
38+
--md-primary-fg-color: #347dbe;
39+
--md-primary-fg-color--light: #ECB7B7;
40+
--md-primary-fg-color--dark: #90030C;/
3541
}

staging_docs/index.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
hide:
3+
- navigation
4+
- toc
5+
- footer
6+
---
7+
8+
# Home {.hide-h1}
9+
<div class="hero-header" markdown>
10+
11+
![Pulp Logo](site:pulpcore/docs/assets/pulp_logo_big.png)
12+
13+
## Pulp is an open source project that makes it easy for developers to fetch, upload, and distribute *Software Packages* on-prem or in the cloud. {: #pulp-project}
14+
15+
</div>
16+
17+
---
18+
19+
<div class="grid cards" markdown>
20+
21+
- :material-clock-fast:{ .lg .middle } **Starter Tutorial**
22+
23+
---
24+
25+
Learn to manage content with Pulp and get yourself familiar with core concepts and workflows.
26+
27+
[:octicons-arrow-right-24: Getting started](site:pulpcore/docs/user/tutorials/01-overview/)
28+
29+
- :octicons-download-16:{ .lg .middle } **Pulp in a Container**
30+
31+
---
32+
33+
Use OCI (Open Container Initiative) images to install Pulp in single or multi-container setups.
34+
35+
[:octicons-arrow-right-24: Installation Quickstart](site:pulp-oci-images/docs/admin/tutorials/quickstart/)
36+
37+
- :octicons-rocket-16:{ .lg .middle } **Why Pulp?**
38+
39+
---
40+
41+
Learn why important projects rely on Pulp to manage the lifecyle of huge *Software Content* collections.
42+
43+
[:octicons-arrow-right-24: Features](#)
44+
45+
- :octicons-people-16:{ .lg .middle } **Get Involved**
46+
47+
---
48+
49+
Join our communication channels and get to know the contributors and users of Pulp's strong ecosystem.
50+
51+
[:octicons-arrow-right-24: Community](#)
52+
53+
</div>

staging_docs/sections/admin/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
hide:
33
- toc
44
---
5+
6+
# Admin Guide {.hide-h1}
7+
58
<div class="hero-header" markdown>
6-
<h1 class="landing-page-h1"></h1>
79

810
## This section is for **admins**
911

staging_docs/sections/dev/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
hide:
33
- toc
44
---
5+
6+
# Developer Guide {.hide-h1}
7+
58
<div class="hero-header" markdown>
6-
<h1 class="landing-page-h1"></h1>
79

810
## This section is for Pulp **developers**
911

staging_docs/sections/user/index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
hide:
33
- toc
44
---
5-
<div class="hero-header" markdown>
65

7-
<h1 class="landing-page-h1"></h1>
6+
# User Guide {.hide-h1}
7+
8+
<div class="hero-header" markdown>
89

910
## This section is for **users**
1011

0 commit comments

Comments
 (0)