2018-09-24 17:28:24 +02:00
|
|
|
# Fedora Packaging Committee
|
|
|
|
|
|
2018-11-24 14:32:30 +01:00
|
|
|
Welcome! This is the Pagure instance for the Fedora Packaging Committee.
|
2018-09-24 17:28:24 +02:00
|
|
|
|
2018-11-24 14:32:30 +01:00
|
|
|
The Pagure repository is used to store the source of Packaging Guidelines,
|
2018-09-24 17:28:24 +02:00
|
|
|
track related issues
|
|
|
|
|
and accept changes via pull requests.
|
|
|
|
|
|
|
|
|
|
For more information on the committee and its processes,
|
2018-09-27 14:16:33 -05:00
|
|
|
see the page in the main Fedora wiki
|
|
|
|
|
[here](https://fedoraproject.org/wiki/Packaging_Committee).
|
2018-09-24 17:28:24 +02:00
|
|
|
|
2018-09-27 14:16:33 -05:00
|
|
|
You can view the actual packaging guidelines
|
|
|
|
|
[here](https://docs.fedoraproject.org/en-US/packaging-guidelines/).
|
2018-09-24 17:28:24 +02:00
|
|
|
|
2018-09-27 14:16:33 -05:00
|
|
|
## Packaging Guideline Development
|
|
|
|
|
|
2018-11-24 14:28:26 +01:00
|
|
|
### Checking the Effect of Your Changes
|
|
|
|
|
|
|
|
|
|
To quickly check whether the changes you have made to a .adoc file
|
|
|
|
|
cause the desired changes to the HTML code,
|
|
|
|
|
use Asciidoctor.
|
|
|
|
|
It is in the package rubygem-asciidoctor,
|
|
|
|
|
and is, despite the package name, usable from a command prompt:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ asciidoctor path/to/file.adoc
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This will generate an HTML file corresponding to the input file.
|
|
|
|
|
The style will differ
|
|
|
|
|
but the HTML code as such is supposed to match what will end up on the website,
|
|
|
|
|
allowing you to see whether the Asciidoc code works as you intended.
|
|
|
|
|
|
2018-11-28 14:31:33 -06:00
|
|
|
### Quick Preview in the Browser
|
|
|
|
|
|
|
|
|
|
You can install the Asciidoctor browser extension
|
|
|
|
|
from https://github.com/asciidoctor/asciidoctor-browser-extension
|
|
|
|
|
to get a quick browser preview.
|
|
|
|
|
As with running asciidoctor directly,
|
|
|
|
|
the results won't look exactly
|
|
|
|
|
like the final result will,
|
|
|
|
|
but it's reasonable for checking the formatting.
|
|
|
|
|
|
|
|
|
|
This will also work to preview files from within Pagure,
|
|
|
|
|
which is handy for checking the results of pull requests
|
|
|
|
|
without pulling and locally generating the documents.
|
|
|
|
|
Simply navigate to a file and click the `Raw` button.
|
|
|
|
|
|
|
|
|
|
Note that under Firefox,
|
|
|
|
|
the extension will not run on `file://` URLs
|
|
|
|
|
unless you press enter on the URL bar.
|
|
|
|
|
|
2018-11-24 14:28:26 +01:00
|
|
|
### Building the Whole Set of Guidelines
|
|
|
|
|
|
|
|
|
|
For building the whole set of guidelines locally
|
|
|
|
|
and viewing them in the same style as on the website,
|
|
|
|
|
there is a container-based build procedure.
|
|
|
|
|
This will download and execute container blobs containing Antora,
|
|
|
|
|
and produce a complete set of HTML documents and stylesheets,
|
|
|
|
|
which can then be browsed through a temporary HTTP server.
|
2018-09-24 17:28:24 +02:00
|
|
|
|
|
|
|
|
Prerequisites:
|
|
|
|
|
|
|
|
|
|
* `make`
|
|
|
|
|
* `podman`
|
|
|
|
|
* `python3`
|
|
|
|
|
|
2018-11-24 14:32:30 +01:00
|
|
|
Run the following commands and open http://localhost:8000/
|
2018-09-24 17:28:24 +02:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ make
|
|
|
|
|
$ make serve
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Writing
|
|
|
|
|
|
2018-09-27 14:16:33 -05:00
|
|
|
[Antora](https://antora.org/) is used for
|
2018-11-24 14:32:30 +01:00
|
|
|
managing the various documents which comprise the guidelines
|
2018-09-27 14:16:33 -05:00
|
|
|
and integrating them into the rest of Fedora Documentation.
|
|
|
|
|
|
|
|
|
|
The guidelines themselves are written in
|
|
|
|
|
[AsciiDoc](https://asciidoc.org).
|
|
|
|
|
Some useful information about AsciiDoc can be found below:
|
2018-09-24 17:28:24 +02:00
|
|
|
|
|
|
|
|
* [AsciiDoc Syntax Quick Reference](https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/)
|
2018-09-26 20:40:48 +00:00
|
|
|
* [AsciiDoc Writer's Guide](https://asciidoctor.org/docs/asciidoc-writers-guide/)
|
2018-09-24 17:28:24 +02:00
|
|
|
|
2018-09-27 14:16:33 -05:00
|
|
|
### Conventions and Preferences
|
2018-09-24 17:28:24 +02:00
|
|
|
|
2018-09-27 14:16:33 -05:00
|
|
|
The Packaging Committee tries to follow the following,
|
|
|
|
|
and it is preferred that pull requests do the same.
|
|
|
|
|
|
2021-10-10 14:25:07 -07:00
|
|
|
* Use [Semantic Line Breaks](https://sembr.org/) to make diffing simpler.
|
2018-09-24 17:28:24 +02:00
|
|
|
* Prefer `https://example.com[here]` over `link:https://example.com[here]`
|
|
|
|
|
* Prefer `[#some-ref]` over `[[some-ref]]`
|