You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Visit https://xapi-project.github.io/new-docs/ to view the current documentation.
4
-
- Install Hugo; follow the guidance on https://gohugo.io/getting-started/installing.
5
-
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`.
7
40
- Run a local server: `hugo server`
8
-
- Open a browser at http://127.0.0.1:1313/new-docs/
41
+
- Open a browser at <http://127.0.0.1:1313/new-docs/>
9
42
- Add content to `doc/content/`:
10
43
- Documents are written in Markdown.
11
-
- Please wrap lines in paragraphs to make review and diffs easier to read.
12
-
- The menu hierarchy comes mostly from the directory structure in `content/`.
44
+
- Please wrap lines in paragraphs to make reviews more manageable.
45
+
- The menu hierarchy comes mainly from the directory structure in`content/`.
13
46
- 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,
47
+
- To set the page title,
15
48
[use the front matter](https://gohugo.io/content-management/front-matter/).
16
-
- 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.
17
-
- Look at https://mcshelby.github.io/hugo-theme-relearn/ for more information about what the Relearn theme offers, including some handy "shortcodes".
49
+
- For a page that has images or other stuff included, it is best to create a new directory:
50
+
Put the contents in an `index.md` file (no `_`) and the related files next to it.
51
+
See <https://gohugo.io/content-management/organization/>for more information.
52
+
53
+
See <https://mcshelby.github.io/hugo-theme-relearn/>for more information about
54
+
the features of the Relearn theme, including handy "shortcodes".
55
+
56
+
Note: When switching versions, before re-generating the documentation using
57
+
`hugo server`, delete the previously generated static site using `rm -r docs/public`.
58
+
59
+
### Notes for supporting current versions of Hugo and the Relearn theme
60
+
61
+
Backported fixes to support newer Hugo versions:
62
+
63
+
- `layouts/partials/header.html`, it fixes:
64
+
```js
65
+
ERROR deprecated: .Sites.First was deprecated in Hugo v0.127.0 and will be removed in Hugo 0.143.0. Use .Sites.Default instead.
66
+
```
67
+
- `layouts/partials/menu.html`, it fixes:
68
+
```js
69
+
ERROR deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.143.0. Use hugo.IsMultilingual instead.
70
+
```
71
+
72
+
The fixes for those issues were backported from the Hugo Relearn v7.x.x theme.
73
+
When updating to Hugo Relearn 7.x.x, please remove them (if possible).
74
+
75
+
#### Tips when upgradubg to newer Hugo Relearn versions
76
+
77
+
Check the release notes of the Hugo Relearn theme for breaking changes:
Copy file name to clipboardExpand all lines: doc/content/design/emulated-pci-spec.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ status: proposed
11
11
At present (early March 2015) the datamodel defines a VM as having a "platform" string-string map, in which two keys are interpreted as specifying a PCI device which should be emulated for the VM. Those keys are "device_id" and "revision" (with int values represented as decimal strings).
12
12
13
13
Limitations:
14
-
* Hardcoded defaults are used for the the vendor ID and all other parameters except device_id and revision.
14
+
* Hardcoded defaults are used for the vendor ID and all other parameters except device_id and revision.
15
15
* Only one emulated PCI device can be specified.
16
16
17
17
When instructing qemu to emulate PCI devices, qemu accepts twelve parameters for each device.
0 commit comments