~~NOTOC~~ ====== Formatting Guidelines for Documentation Pages ====== * **[[#Structure of an Xfce Component's Main Page|Structure of an Xfce Component's Main Page]]** * **[[#Formatting Guidelines|Formatting Guidelines]]** * **[[#Use the NOTOC header|Use the NOTOC header]]** * **[[#Creating a Table of Contents|Creating a Table of Contents]]** * **[[#Using Horizontal Rules|Using Horizontal Rules]]** * **[[#Using Back to Top links|Using Back to Top links]]** * **[[#Creating back-links|Creating back-links]]** If a new documentation page is needed, it is important to maintain a layout and appearance that is consistent with the rest of the documentation. Below are some guidelines to follow when creating a new documentation page. ---- ===== Structure of an Xfce Component's Main Page ===== Every core module, application, or panel plugin has a starting page (''/start''), which is the entry point of the documentation for that component. Simple components may have only a single documentation page (see for example the [[:apps:xfce4-taskmanager:start|xfce4-taskmanager]] starting page), while other components referenc multiple, specialized sub-pages (see [[:apps:xfce4-screenshooter:start|xfce4-screenshooter]] or [[:apps:ristretto:start|Ristretto]]). The structure of the starting page should be the same for all components, with the following standard sections, in this order: - **Introduction**: a short description of the component, - **Usage**: one or more sections describing how to use the component, or links to sub-pages, - **Required Packages**: the packages the component depends on, - **Latest Release**, **Source Code Repository** and **Reporting Bugs**: these last three sections are mostly identical across components. === Required Packages === In the "Required Packages" section, list the required and optional packages **without** their version numbers. At the end of the section, reuse the following code to point readers to the ''meson.build'' file (where the exact required versions are listed) and to the dependency versions of the current Xfce release: For current version requirements of Xfce components, see the [[https://wiki.xfce.org/releng/4.22/roadmap#changes_in_dependencies|dependency version list]] on the developer wiki. For the exact required or minimum versions, see the ''meson.build'' file in the source code repository or in the release tarball. === Latest Release, Source Code Repository and Reporting Bugs === Use the following code as a template. Remember to update the links to point to the relevant component: ===== Latest Release ===== {{rss>https://archive.xfce.org/feeds/project/ristretto 1 date 2h}} [[https://gitlab.xfce.org/apps/ristretto/-/blob/master/NEWS|Read the CHANGELOG]] * **[[https://archive.xfce.org/src/apps/ristretto/|Download current release]]** (older versions of this component are also available here) [[|Back to Top]] ---- ===== Source Code Repository ===== [[https://gitlab.xfce.org/apps/ristretto|]] ---- ===== Reporting Bugs ===== * **[[:apps:ristretto:bugs|Reporting Bugs]]** -- List of currently open bugs and instructions on how to submit new bug reports [[|Back to Top]] ---- [[|Back to Top]] ---- ===== Formatting Guidelines ===== ==== Use the NOTOC header ==== Use the control macro ''~~NOTOC~~'' at the very top of the page in the editing window. 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 [[:wiki:syntax#sectioning|Sectioning syntax]]. ---- ==== Creating a Table of Contents ==== As a general rule, if viewing a page requires scrolling, and has multiple sections, it is recommended to manually create a table of contents(ToC). Using the [[:start|Main Docs.xfce.org page]] as an example, we have a table of contents consisting of three main sections: * **[[#Core Modules|Core Modules]]** * **[[#Applications|Applications]]** * **[[#External Plugins|External Plugins]]** Each link refers to a main header located further down the page. ---- ==== Using Horizontal Rules ==== Use a horizontal rule for breaking up sections of a page. A horizontal rule is created by using ---- (four dashes) in between two blank lines. Be sure to preview your changes before saving to ensure that the divider properly renders on the page. [[|Back to Top]] ---- ==== Using Back to Top links ==== 'Back to Top' links are used throughout Xfce's documentation pages as a navigational aid for readers of 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]]'' followed by a horizontal rule to allow the reader to return back to the top of page and the table of contents. [[|Back to Top]] ---- This is not a strict rule and depends upon the size of a section. If there are a number of small sections on one screen, a "Back to Top" is not necessarily needed for each section. This requires a bit of a judgement call on the part of the editor: striking a balance between a reader's useability of the page and cluttering the page with extra, unneeded links. ---- ==== Creating back-links ==== At the bottom of a page, if it makes sense, create one or two back-links to the main page. For example, on the [[:xfce:thunar:thunar-archive-plugin:bugs|Thunar-archive-plugin bugs]] page, there are two backlinks included at the bottom of the page. One returns the user to the subsection on the thunar archive plugin, and the second goes back to the main thunar page. This is coded in the editing window, as follows: [[:xfce:thunar:archive|Return to thunar-archive-plugin Main Documentation Page]] [[:xfce:thunar:|Return to Thunar Main Documentation Page]] Note that there is a single blank line between the two lines of code. This allows for the two links to appear separately. [[|Back to Top]] ---- [[:contribute:documentation:|Return to Documentation Contribution Page]] [[:start:|Return to Main Documentation Page]]