Skip to content

Commit 7e26ffe

Browse files
committed
feat(docsy): Sync with Docsy v0.7.0 spec
1 parent 4620c0d commit 7e26ffe

Some content is hidden

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

51 files changed

+2349
-649
lines changed

.github/workflows/gh-pages.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,35 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:
15-
submodules: recursive # Fetch Hugo themes (true OR recursive)
16-
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
15+
submodules: recursive
16+
fetch-depth: 0
1717

1818
- name: Setup Hugo
1919
uses: peaceiris/actions-hugo@v2
2020
with:
21-
hugo-version: '0.108.0'
21+
hugo-version: '0.114.0'
2222
extended: true
2323

2424
- name: Setup Node
2525
uses: actions/setup-node@v1
2626
with:
2727
node-version: '16.x'
2828

29+
- name: Cache dependencies
30+
uses: actions/cache@v1
31+
with:
32+
path: ~/.npm
33+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-node-
36+
2937
- run: npm install
3038

3139
- name: Build
3240
run: hugo --environment production --minify
3341

3442
- name: Deploy
3543
uses: peaceiris/actions-gh-pages@v3
36-
if: github.ref == 'refs/heads/main'
3744
with:
3845
github_token: ${{ secrets.GITHUB_TOKEN }}
3946
publish_dir: ./public

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/public
2-
resources/
31
node_modules/
4-
package-lock.json
2+
/public
3+
/resources
4+
.DS_Store
55
.hugo_build.lock
66
_vendor

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
([Français](#code-de-conduite))
2+
3+
## Code of Conduct
4+
5+
Drupal WxT follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
6+
7+
Please review before contributing issues, pull requests, or joining the GitHub organization.
8+
9+
______________________
10+
11+
## Code de conduite
12+
13+
Drupal WxT suit le [Code de conduite de la CNCF](https://github.com/cncf/foundation/blob/main/code-of-conduct-languages/fr.md).
14+
15+
Veuillez passer en revue avant de contribuer à des problèmes, des demandes d'extraction ou de rejoindre l'organisation GitHub.

CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing
2+
3+
([Français](#comment-contribuer))
4+
5+
## How to Contribute
6+
7+
Feel free to propose changes by creating Pull Requests. If you don't have write access, editing a file will create a Fork of this project for you to save your proposed changes to. Submitting a change to a file will write it to a new Branch in your Fork, so you can send a Pull Request.
8+
9+
If this is your first time contributing on GitHub, don't worry! Let us know if you have any questions.
10+
11+
### Security
12+
13+
**Do not post any security issues on the public repository!** See [SECURITY.md](SECURITY.md)
14+
15+
______________________
16+
17+
## Comment contribuer
18+
19+
Lorsque vous contribuez, veuillez également publier des commentaires et discuter des modifications que vous souhaitez apporter par l'entremise des enjeux (Issues).
20+
21+
N'hésitez pas à proposer des modifications en créant des demandes de tirage (Pull Requests). Si vous n'avez pas accès au mode de rédaction, la modification d'un fichier créera une copie (Fork) de ce projet afin que vous puissiez enregistrer les modifications que vous proposez. Le fait de proposer une modification à un fichier l'écrira dans une nouvelle branche dans votre copie (Fork), de sorte que vous puissiez envoyer une demande de tirage (Pull Request).
22+
23+
Si c'est la première fois que vous contribuez à GitHub, ne vous en faites pas! Faites-nous part de vos questions.
24+
25+
### Sécurité
26+
27+
**Ne publiez aucun problème de sécurité sur le dépôt publique!** Voir [SECURITY.md](SECURITY.md)

README.md

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,71 @@
1-
# Drupal WxT
1+
# Website
22

3-
This Docsy derived project is hosted at **[https://drupalwxt.github.io](https://drupalwxt.github.io)**.
3+
[Docsy](https://github.com/google/docsy) is a Hugo theme for technical documentation sites, providing easy site navigation, structure, and more.
44

5-
> **[Docsy](https://github.com/google/docsy)** is a Hugo theme for technical documentation sites, providing easy site navigation, structure, and more.
5+
> This Docsy derived project is hosted at [https://drupalwxt.github.io/](https://drupalwxt.github.io/). You can find detailed theme instructions in the Docsy user guide: https://docsy.dev/docs/
6+
7+
## Installing Hugo
8+
9+
This repository is presently using Hugo extended 0.101.0 which is available at the bottom of its [release page](https://github.com/gohugoio/hugo/releases/tag/v0.101.0).
10+
11+
## Cloning
12+
13+
The following will give you a project that is set up and ready to use.
14+
15+
The `hugo server` command builds and serves the site.
16+
17+
If you just want to build the site, run `hugo` instead.
18+
19+
```sh
20+
git clone https://github.com/drupalwxt/drupalwxt.github.io
21+
cd drupalwxt.github.io
22+
./dev.sh
23+
```
24+
25+
The theme is included as part of a Hugo module:
26+
27+
```sh
28+
▶ hugo mod graph
29+
project github.com/google/[email protected]+vendor
30+
project github.com/google/docsy/[email protected]+vendor
31+
project github.com/twbs/[email protected]+incompatible+vendor
32+
project github.com/FortAwesome/[email protected]+vendor
33+
```
34+
35+
If you want to do SCSS edits and want to publish these, you need to install `PostCSS` (not needed for `hugo server`):
36+
37+
```sh
38+
npm install
39+
```
40+
41+
## Running the website locally
42+
43+
Once you've cloned the site repo, from the repo root folder, run:
44+
45+
```sh
46+
./dev.sh
47+
```
48+
49+
## Linting
50+
51+
To lint all Markdown files in a Node.js project (excluding dependencies), the following commands might be used:
52+
53+
Windows CMD
54+
55+
```sh
56+
markdownlint content/**/*.md --ignore node_modules --fix
57+
```
58+
59+
Linux Bash
60+
61+
```sh
62+
markdownlint 'content/**/*.md' --ignore node_modules --fix
63+
```
64+
65+
## Acknowledgements
66+
67+
Thanks to the following projects for showing us how to clearly architect a docsy project:
68+
69+
* [Knative](https://knative.dev)
70+
* [Docsy Example](https://github.com/google/docsy-example)
71+
* [Cloud Platform User Guide](https://user-guide.cloud-platform.service.justice.gov.uk/#cloud-platform-user-guide)

SECURITY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
([Français](#sécurité))
2+
3+
## Security
4+
5+
**Do not post any security issues on the public repository!** Security vulnerabilities must be reported by email to `[email protected]`
6+
7+
______________________
8+
9+
## Sécurité
10+
11+
**Ne publiez aucun problème de sécurité sur le dépôt publique!** Les vulnérabilités de sécurité doivent être signalées par courriel à `[email protected]`

assets/js/custom.js

Whitespace-only changes.

assets/scss/_custom.scss

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// Custom CSS
2+
3+
// Main Navbar
4+
5+
.td-navbar {
6+
@extend .navbar;
7+
@extend .navbar-expand;
8+
9+
background: $white !important;
10+
border-bottom: 1px solid #284162 !important;
11+
12+
min-height: 4rem;
13+
margin: 0;
14+
z-index: 32;
15+
16+
.navbar-brand {
17+
svg {
18+
display: inline-block;
19+
height: 50px;
20+
width: auto;
21+
margin-right: 10px;
22+
}
23+
}
24+
}
25+
26+
// Search
27+
28+
.td-search {
29+
// Search input element
30+
&__input {
31+
&.form-control {
32+
box-shadow: none;
33+
}
34+
}
35+
}
36+
37+
// Sidebar Search
38+
39+
.td-sidebar__search {
40+
margin-top: 15px;
41+
}
42+
43+
#td-sidebar-menu {
44+
.lang {
45+
46+
padding-top: 0.5rem;
47+
padding-left: 1.5rem;
48+
}
49+
}
50+
51+
// Footer
52+
53+
.releases .item {
54+
background-color: #333;
55+
color: #ffffff;
56+
padding: 0 20px 20px;
57+
z-index: 2;
58+
float: left;
59+
width: 100%;
60+
margin-bottom: 30px;
61+
position: relative;
62+
}
63+
64+
.releases .item:after {
65+
opacity: 0.05;
66+
z-index: -1;
67+
background-size: cover;
68+
width: 100%;
69+
height: 100%;
70+
position: absolute;
71+
top: 0;
72+
left: 0;
73+
content: '';
74+
}
75+
76+
.releases .item .header {
77+
color: #ffffff;
78+
background: #428bca;
79+
position: relative;
80+
float: left;
81+
margin-top: -8px;
82+
padding: 5px 10px;
83+
text-align: center;
84+
font-size: 1.2em;
85+
}
86+
87+
.releases .item .title {
88+
clear: both;
89+
color: #ffffff;
90+
margin: 15px 0 55px;
91+
float: left;
92+
text-align: left;
93+
}
94+
95+
.releases .item .title h3 {
96+
font-size: 1.4em;
97+
font-weight: 300;
98+
line-height: inherit;
99+
}
100+
101+
.releases .item .type {
102+
float: left;
103+
clear: both;
104+
}
105+
106+
.td-footer {
107+
background-color: #000;
108+
}
109+
110+
// Reading Time
111+
112+
.reading-time {
113+
margin-top: 1.5em;
114+
}

0 commit comments

Comments
 (0)