|
1 | | -# Drupal WxT |
| 1 | +# Website |
2 | 2 |
|
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. |
4 | 4 |
|
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) |
0 commit comments