Skip to content

Commit 242e626

Browse files
authored
Merge pull request #5699 from xenserver-next/improve-hugo-dev-howto-readme
2 parents 6af8250 + 360d9c3 commit 242e626

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.codecov.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,6 @@ coverage:
196196
#
197197
project:
198198

199-
#
200-
# Python modules and scripts below scripts/ (excluding tests)
201-
#
202-
scripts:
203-
paths: ["scripts/**", "!**/test_*.py"]
204-
target: 48%
205-
threshold: 2%
206-
207199
#
208200
# Python modules and scripts below ocaml/ (excluding tests)
209201
#

doc/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
Quick start guide:
22

3+
- Visit https://xapi-project.github.io/new-docs/ to view the current documentation.
34
- Install Hugo; follow the guidance on https://gohugo.io/getting-started/installing.
45
You'll need Go as well: see https://go.dev/
6+
- On Ubuntu 22.04 and older, use `sudo snap install hugo` to get the needed newer version of `hugo`.
57
- Run a local server: `hugo server`
6-
- Open a browser at http://127.0.0.1:1313/
7-
- Add some content.
8+
- Open a browser at http://127.0.0.1:1313/new-docs/
9+
- Add content to `doc/content/`:
810
- Documents are written in Markdown.
911
- Please wrap lines in paragraphs to make review and diffs easier to read.
1012
- The menu hierarchy comes mostly from the directory structure in `content/`.
11-
- A file called `_index.md` is needed in a directory to define a new level in the menu. Add a title to the frontmatter.
13+
- A file called `_index.md` is needed in a directory to define a new level in the menu.
14+
- To set the page title which is also used for the main menu,
15+
[use the front matter](https://gohugo.io/content-management/front-matter/).
1216
- For a page that has images or other stuff included, it is best to create a new directory. Put the contents in a `index.md` file (no `_`) and the related files next to it. See https://gohugo.io/content-management/organization/ for more information.
1317
- Look at https://mcshelby.github.io/hugo-theme-relearn/ for more information about what the Relearn theme offers, including some handy "shortcodes".

0 commit comments

Comments
 (0)