Skip to content

Commit 1b6e72a

Browse files
authored
Merge pull request #383 from RedHatOfficial/feat/rhds-update
feat: updating to RHDS + several other updates
2 parents c132ae2 + 5791fc1 commit 1b6e72a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2068
-1679
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
.git
33
dist
44
.idea
5-
.DS_Store
5+
.DS_Store
6+
public

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,21 @@ cd RedHatOfficial.github.io
8787
To build and run this project in your local dev environment, first install [Zola](https://www.getzola.org/documentation/getting-started/installation/). Then, run
8888

8989
```bash
90-
cd site
91-
zola serve
90+
zola --config config.dev.toml serve
9291
```
9392

9493
Go to the URL for the webserver (likely `localhost:1111`) to explore the site.
9594

95+
### Configuration note
96+
97+
There are two config files:
98+
99+
- `config.toml` — For use in production. Sets CDN to redhatstatic.com
100+
- `config.dev.toml` — For use in local development. Sets CDN to jsDelivr
101+
102+
Any changes done in `config.toml` must be duplicated in `config.dev.toml` (and vice versa).
103+
104+
96105
## Built with
97106

98107
This project is build and run using [Zola](https://www.getzola.org/), a Rust-based static site generator.

config.dev.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# The URL the site will be built for
2+
base_url = "https://redhatofficial.github.io"
3+
4+
# Whether to automatically compile all Sass files in the sass directory
5+
compile_sass = true
6+
7+
# Whether to build a search index to be used later on by a JavaScript library
8+
build_search_index = false
9+
10+
default_language = "en"
11+
12+
title = "Red Hat Official GitHub"
13+
14+
[markdown]
15+
# Whether to do syntax highlighting
16+
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
17+
highlight_code = true
18+
external_links_target_blank = true
19+
20+
[extra]
21+
# Put all your custom variables here
22+
env = "dev"

config.toml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,4 @@ external_links_target_blank = true
1919

2020
[extra]
2121
# Put all your custom variables here
22-
nav_links = [
23-
{label = "Projects", link = {href = "#projects", title = "View a list of all our projects", external = false} },
24-
{label = "Contribute", link = {href = "#contribute", title = "Learn more about contributing to Red Hat's projects.", external = false} },
25-
{label = "Blog", link = {href = "https://www.redhat.com/en/blog", title = "Read about Red Hat on our company blog.", external = true} },
26-
{label = "About", link = {href = "https://www.redhat.com/en/about", title = "Learn more about Red Hat.", external = true} }
27-
]
28-
footer_links = [
29-
{text = "Privacy statement", href = "https://www.redhat.com/en/about/privacy-policy", title = "" },
30-
{text = "Terms of use", href = "https://www.redhat.com/en/about/terms-use", title = ""},
31-
{text = "All policies and guidelines", href = "https://www.redhat.com/en/about/all-policies-guidelines", title = ""},
32-
]
22+
env = "prod"

data/nav_links.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"label": "Projects",
4+
"href": "#projects",
5+
"external": false
6+
},
7+
{
8+
"label": "Contribute",
9+
"href": "#contribute",
10+
"external": false
11+
},
12+
{
13+
"label": "Blog",
14+
"href": "https://www.redhat.com/en/blog",
15+
"external": true
16+
},
17+
{
18+
"label": "About",
19+
"href": "https://www.redhat.com/en/about",
20+
"external": true
21+
}
22+
]

sass/band.scss

Lines changed: 0 additions & 34 deletions
This file was deleted.

sass/bandheader.scss

Lines changed: 0 additions & 37 deletions
This file was deleted.

sass/card.scss

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)