Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| contribute:documentation:creating_new_pages [2026/09/16 00:04] – kevinbowen | contribute:documentation:creating_new_pages [2026/09/16 01:33] (current) – kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | ====== Formatting | + | ====== Formatting |
| * **[[#Use the NOTOC header|Use the NOTOC header]]** | * **[[#Use the NOTOC header|Use the NOTOC header]]** | ||
| Line 8: | Line 8: | ||
| * **[[# | * **[[# | ||
| - | Most documentation contributions to docs.xfce.org and the wiki consist of small edits or modifications to specific sections of the documentation. | ||
| - | If a new page is needed, it is important to keep its layout and appearance consistant with the rest of the documentation. | + | If a new documentation, |
| Below are some guidelines to use when creating a new documentation page. | Below are some guidelines to use when creating a new documentation page. | ||
| Line 20: | Line 19: | ||
| Use the control macro ''< | Use the control macro ''< | ||
| This is a internal Dokuwiki control macro that will disable the autogeneration of a list in the sidebar. If a document becomes long enough, it is recommended to manually create and maintain a table of contents within the body of the documentation page. See also [[: | This is a internal Dokuwiki control macro that will disable the autogeneration of a list in the sidebar. If a document becomes long enough, it is recommended to manually create and maintain a table of contents within the body of the documentation page. See also [[: | ||
| - | |||
| - | As a rule of thumb, if a page becomes longer than a screen and has multiple sections, it is recommended to manually create a table of contents. | ||
| ---- | ---- | ||
| ===== Creating a Table of Contents ===== | ===== Creating a Table of Contents ===== | ||
| + | |||
| + | As a general rule, if a page becomes longer than one visual screen, and has multiple sections, it is recommended to manually create a table of contents. | ||
| Using the [[: | Using the [[: | ||
| Line 35: | Line 34: | ||
| </ | </ | ||
| - | [[|Back | + | Each link refers |
| ---- | ---- | ||
| ===== Using horizontal rules ===== | ===== Using horizontal rules ===== | ||
| - | 3. Use a horizontal rule for breaking up sections of a page. | + | Use a horizontal rule for breaking up sections of a page. |
| - | A horizontal rule is created by using '' | + | A horizontal rule is created by using |
| + | <code> | ||
| + | ---- | ||
| + | </code> | ||
| + | (four dashes) in between two blank lines. Be sure to preview | ||
| + | [[|Back to Top]] | ||
| ---- | ---- | ||
| ===== Using Back to Top links ===== | ===== Using Back to Top links ===== | ||
| - | 3. If a section is long enough and the top of the page scrolls far beyond the top of the screen, insert the code ''< | + | 'Back to Top' links are used on Xfce's documentation pages as a navigational aid for readers on documentation pages that are larger than a few sentences. |
| + | |||
| + | If a section is long enough and the top of the page scrolls far beyond the top of the screen, insert the code ''< | ||
| + | |||
| + | < | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| + | |||
| + | </ | ||
| + | |||
| + | This is not a strict rule and would depend on how large a section. If there are a number of small sections on one screen, a "Back to Top" is not neccessarily needed for each section. This is a bit of a judgement call required on the part of the editor to strike a balance between a reader' | ||
| + | |||
| + | ---- | ||
| ===== Creating back-links ===== | ===== Creating back-links ===== | ||
| - | 4.At the bottom of the page, if it makes sense, create one or two back-links to the main page. For example, on the [[: | + | At the bottom of the page, if it makes sense, create one or two back-links to the main page. For example, on the [[: |
| < | < | ||