Merge remote-tracking branch 'music/depagure' into feat-update-pagure-links

This commit is contained in:
Ankur Sinha 2026-08-24 17:24:35 +01:00
commit 003c0246bc
Signed by: ankursinha
GPG key ID: F8D8C0BEBAC898BD
11 changed files with 104 additions and 97 deletions

178
README.md
View file

@ -1,13 +1,17 @@
# Fedora Package Maintainer Docs
Welcome! The repository is used to store the source of Package Maintainer Docs,
Welcome! This is the Fedora Forge instance for the Fedora Package Maintainer Docs.
The Fedora Forge repository is used to store the source of Package Maintainer Docs,
track related issues
and accept changes via pull requests.
You can view the actual documentation
[here](https://docs.fedoraproject.org/en-US/package-maintainers/).
## Writing
## Documentation Development
### Writing
[Antora](https://antora.org/) is used for
managing the various documents which comprise the guidelines
@ -20,25 +24,6 @@ Some useful information about AsciiDoc can be found below:
* [AsciiDoc Syntax Quick Reference](https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/)
* [AsciiDoc Writer's Guide](https://asciidoctor.org/docs/asciidoc-writers-guide/)
### Submitting changes
The documentation is intended to be maintained collectively
by all Fedora packagers.
Trivial changes, such as adding links or correcting typos,
can be committed directly to the `main` branch.
More substantial changes should be submitted through pull requests
and be reviewed by another contributor before merging.
In case a pull request not reviewed in reasonable time,
the following actions can be taken, in given order:
* Ask admins of this repository to take a look
by tagging them on the pull request.
* Ask on the [devel mailing list][devel] why this repository is not responsive.
[devel]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
### Conventions and Preferences
This repository attempts to follow the following:
@ -51,77 +36,88 @@ This repository attempts to follow the following:
[docopt]: http://docopt.org/
## Structure
### Submitting changes
The documentation is intended to be maintained collectively
by all Fedora packagers.
Trivial changes, such as adding links or correcting typos,
can be committed directly to the `main` branch.
More substantial changes should be submitted through pull requests
and be reviewed by another contributor before merging.
Due to [technical issues][issue],
the `packager` group from the Fedora Account System cannot be granted access,
so there is a dedicated Pagure group [package-maintainer-docs][group] with commit access.
Membership is granted to authors of all merged pull request.
Membership can also be requested by commenting on [issue #23][23].
[issue]: https://pagure.io/releng/issue/9927
[group]: https://pagure.io/group/package-maintainer-docs
[23]: https://pagure.io/fedora-docs/package-maintainer-docs/issue/23
In case a pull request not reviewed in reasonable time,
the following actions can be taken, in given order:
* Ask admins of this repository to take a look
by tagging them on the pull request.
* Ask on the [devel mailing list][devel] why this repository is not responsive.
[devel]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/
### Local preview
This repo includes a script to
build and preview the contents of this repository.
**NOTE**: Please note that
if you reference pages from other repositories,
such links will be broken in this local preview
as it only builds this repository.
If you want to rebuild the whole Fedora Docs site,
please see [the Fedora Docs build repository](https://forge.fedoraproject.org/docs/docs-fp-o) for instructions.
The script works on Fedora (using Podman) and macOS (using Docker).
To build, watch and preview the site, run:
```
|-- README.md
|-- antora.yml ....................... 1.
|-- docsbuilder.sh ................... 2.
|-- nginx.conf ....................... 3.
|-- site.yml ......................... 4.
`-- modules
`-- ROOT ......................... 5.
|-- assets
| `-- images ............... 6.
| `-- *
|-- nav.adoc ................. 7.
`-- pages .................... 8.
`-- *.adoc
```
1. Metadata definition.
2. A script that does a local build. It shows a preview of the site in a web browser by running a local web server. Uses podman or Docker.
3. A configuration file used by the local preview web server.
4. A definition file for the build script.
5. A "root module of this documentation component". Please read below for an explanation.
6. **Images** to be used on any page.
7. **Menu definition.** Also defines the hierarchy of all the pages.
8. **Pages with the actual content.** They can be also organised into subdirectories if desired.
## Components and Modules
Antora introduces two new terms:
* **Component** — Simply put, a component is a part of the documentation website with its own menu. Components can also be versioned. In the Fedora Docs, we use separate components for user documentation, the Fedora Project, Fedora council, Mindshare, FESCO, but also subprojects such as CommOps or Modularity.
* **Module** — A component can be broken down into multiple modules. Modules still share a single menu on the site, but their sources can be stored in different git repositories, even owned by different groups. The default module is called "ROOT" (that's what is in this example). If you don't want to use multiple modules, only use "ROOT". But to define more modules, simply duplicate the "ROOT" directory and name it anything you want. You can store modules in one or more git repositories.
## Local preview
This repo includes a script to build and preview the contents of this repository.
**NOTE**: Please note that if you reference pages from other repositories, such links will be broken in this local preview as it only builds this repository. If you want to rebuild the whole Fedora Docs site, please see [the Fedora Docs build repository](https://forge.fedoraproject.org/docs/docs-fp-o/) for instructions.
The script works on Fedora (using Podman or Docker) and macOS (using Docker).
To build and preview the site, run:
```
$ ./docsbuilder.sh -p
$ ./docsbuilder.sh
```
The result will be available at http://localhost:8080
and automatically regenerated when the repo contents change.
To stop the preview:
#### Checking links
To check for broken links,
first install linkchecker: `sudo dnf install linkchecker`.
Ensure that the preview is running,
then in another terminal window run:
```
$ ./docsbuilder.sh -k
./check-links.sh
```
### Installing Podman on Fedora
#### Installing Podman on Fedora
Fedora Workstation doesn't come with Podman preinstalled by default — so you might need to install it using the following command:
Fedora Workstation doesn't come with Podman preinstalled by default
— so you might need to install it using the following command:
```
$ sudo dnf install podman
```
### Preview as a part of the whole Fedora Docs site
#### Preview as a part of the whole Fedora Docs site
You can also build the whole Fedora Docs site locally to see your changes in the whole context.
You can also build the whole Fedora Docs site locally
to see your changes in the whole context.
This is especially useful for checking if your `xref` links work properly.
To do this, you need to clone the main [Fedora Docs build repository](https://forge.fedoraproject.org/docs/docs-fp-o), modify the `site.yml` file to reference a repo with your changes, and build it.
To do this,
you need to clone the main [Fedora Docs build repository](https://forge.fedoraproject.org/docs/docs-fp-o),
modify the `site.yml` file to reference a repo with your changes,
and build it.
Steps:
Clone the main repository and cd into it:
@ -131,44 +127,48 @@ $ git clone https://forge.fedoraproject.org/docs/docs-fp-o.git
$ cd docs-fp-o
```
Find a reference to the repository you're changing in the `site.yml` file, and change it so it points to your change.
So for example, if I made a modification to the Modularity docs, I would find:
Find a reference to the repository you're changing in the `site.yml` file,
and change it so it points to your change.
So for example, if I made a modification to the Accounts docs,
I would find:
```
...
- url: https://forge.fedoraproject.org/docs/modularity.git
branches:
- master
- url: https://forge.fedoraproject.org/docs/accounts-docs.git
...
```
And replaced it with a pointer to my fork:
```
...
- url: https://pagure.io/forks/asamalik/fedora-docs/modularity.git
- url: https://forge.fedoraproject.org/music/accounts-docs.git
branches:
- master
- my-feature-branch
...
```
I could also point to a local repository, using `HEAD` as a branch to preview the what's changed without the need of making a commit.
I could also point to a local repository,
using `HEAD` as a branch
to preview the what's changed
without the need of making a commit.
**Note:** I would need to move the repository under the `docs-fp-o` directory, because the builder won't see anything above.
So I would need to create a `repositories` directory in `docs-fp-o` and copy my repository into it.
**Note:** I would need to move the repository under the `docs-fp-o` directory,
because the builder won't see anything above.
So I would need to create a `repositories` directory in `docs-fp-o`
and copy my repository into it.
```
...
- url: ./repositories/modularity
- url: ./repositories/accounts
branches:
- HEAD
...
```
To build the whole site, I would run the following in the `docs-fp-o` directory.
To build the whole site,
I would run the following
in the `docs-fp-o` directory.
```
$ ./docsbuilder.sh -p
$ ./build.sh && ./preview.sh
```
# License
SPDX-License-Identifier: CC-BY-SA-4.0

View file

@ -40,7 +40,7 @@ for review requests to comment on.
[#how_to_find_a_sponsor]
== How to find a sponsor
If you have not yet been sponsored, request sponsorship by https://pagure.io/packager-sponsors/issues[raising an issue at packager-sponsors].
If you have not yet been sponsored, request sponsorship by https://forge.fedoraproject.org/packaging/sponsors/issues[raising an issue at packager-sponsors].
You may contact sponsors directly through https://packager-sponsors.fedoraproject.org/[Sponsors page].
It will help you find the right sponsor for you
based on programming language preference, domains of interest, native language, and other criteria.

View file

@ -30,7 +30,7 @@ but should provide a reasonable idea of how much experience is required.
If you're a packager
and feel that you are ready
and would like to move up to sponsor status,
simply file a ticket in the https://pagure.io/packager-sponsors/issues[packager sponsors ticket system].
simply file a ticket in the https://forge.fedoraproject.org/packaging/sponsors/issues[packager sponsors ticket system].
These tickets are automatically sent to the sponsors list.
A report will be added
containing information on your reviewed and owned/comaintained packages,

View file

@ -51,7 +51,7 @@ Fix any blockers that the reviewer(s) point out.
** Request a distgit repository with `fedpkg request-repo PACKAGE-NAME BUGZILLA-TICKET-NUMBER`.
(xref:Package_Maintenance_Guide.adoc[Package Maintenance Guide] has more information about `fedpkg`.)
You might need to get a pagure-API-token
You might need to get a distgit API token
before being able to successfully request the repo.
** When the repo is created, it only contains the `rawhide` branch.

View file

@ -181,10 +181,12 @@ instead of being a co-maintainer,
use https://forge.fedoraproject.org/packaging/fedpkg[fedpkg]
to request a new git repository for your package.
The sub-command is `fedpkg request-repo`
which includes help text for setting up the Pagure API token
which includes help text for setting up the distgit API token
the command requires.
When creating your API-key
choose toggle-all for the ACLs.
choose at least _Read and write_ permissions for _issue_.
You will probably want the token to have additional permissions
to support other package-maintenance tasks.
You must specify the repository name and review bug number.
For example:
@ -195,7 +197,7 @@ fedpkg request-repo python-prometheus_client 1590452
The request will be reviewed and processed automatically.
After processing, you will have access to commit and build the package.
In case the automation does not work,
you can report the problem to https://forge.fedoraproject.org/apps/toddlers[Toddlers issue tracker].
you can report the problem to https://forge.fedoraproject.org/apps/toddlers/issues[Toddlers issue tracker].
`fedpkg request-repo` only creates a branch for Rawhide.
To request branches for other Fedora releases,

View file

@ -54,7 +54,7 @@ which packages you want to take over.
On the page with the orphaned package,
click the _✋ Take_ button in the left column.
If the button does not work,
https://forge.fedoraproject.org/releng/tickets/issues/new[submit a ticket to the Release Engineering team],
https://forge.fedoraproject.org/releng/tickets/issues/new?template=.forgejo%2fISSUE_TEMPLATE%2fnew-issue.md[submit a ticket to the Release Engineering team],
stating which package you want to claim
and that the button did not work.

View file

@ -95,20 +95,25 @@ the `fedora-review` flag will be set to `+`,
indicating that the package has passed review.
* If you have not yet been sponsored,
request sponsorship by https://pagure.io/packager-sponsors/issues[raising an issue at packager-sponsors].
request sponsorship by https://forge.fedoraproject.org/packaging/sponsors/issues[raising an issue at packager-sponsors].
* When your package passes the review
you should use `fedpkg` to request a Git repository for it.
Before you can request a Git repository for the package,
you will need a https://forge.fedoraproject.org/user/settings/applications[Forge API token]
with _Create a new ticket_ ACL
you will need a https://forge.fedoraproject.org/user/settings/applications/tokens/new[Fedora Forge API token]
with at least _Read and write_ permissions for _issue_,
added into `~/.config/rpkg/fedpkg.conf`:
+
....
[fedpkg.pagure]
[fedpkg.forgejo]
token = <generated_code>
....
You will probably want the token to have additional permissions
to support other package-maintenance tasks.
You can also use `fedpkg set-distgit-token`.
* Request a Git repository for the package.
For example, if the package name is `my-package`
and the bugzilla review ticket is 12345,
@ -127,7 +132,7 @@ Otherwise your repository request will be closed as invalid.
and not just Rawhide,
see xref:Package_Maintenance_Guide.adoc#requesting_branches[Requesting branches].
* When https://forge.fedoraproject.org/releng/tickets[releng tickets]
* When https://forge.fedoraproject.org/releng/fedora-scm-requests/issues[fedora-scm-requests tickets]
for the requested repository and branches are closed,
checkout the package:
+

View file

@ -118,7 +118,7 @@ before waiving a failure.
== Single-package updates after updates-testing activation
At the https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updates-testing-activation[updates-testing activation] point,
the Bodhi update feedback system is enabled by https://forge.fedoraproject.org/releng/[Release Engineering]
the Bodhi update feedback system is enabled by https://docs.fedoraproject.org/en-US/infra/release_guide[Release Engineering]
and builds submitted with `fedpkg build`
are no longer automatically sent to any official https://docs.fedoraproject.org/en-US/quick-docs/repositories/[repository].
The update workflow for releases of this type is:
@ -368,7 +368,7 @@ It is possible you will run into problems with permissions
when you are not the maintainer of the package you are trying to add to an update,
or when you are trying to add packages to an update created by somebody else.
If you encounter a situation like this,
you should contact the https://forge.fedoraproject.org/releng/[release engineering] team
you should contact the https://docs.fedoraproject.org/en-US/infra/release_guide[release engineering] team
or a proven packager for help.
[#buildroot_overrides]

View file

@ -97,7 +97,7 @@ Thus `%autosetup`, `%configure`, `%make_build`, `%make_install` and `%autochange
`Version` contains the version number of the packaged software.
`Release` numbers specfile updates, package rebuilds and other work within Fedora.
The value used here, `%autorelease`, is part of https://fedora-infra.github.io/rpmautospec-docs/[rpmautospec],
The value used here, `%autorelease`, is part of https://fedora-infra.github.io/rpmautospec-docs/index.html[rpmautospec],
which is https://fedoraproject.org/wiki/Changes/Rpmautospec_by_Default[recommended for Fedora packages].
It ties `Release` to package's Git history.
As we do not have a Git repository, `%autorelease` will evaluate to the default value of 1.

View file

@ -70,7 +70,7 @@ cd some-package
fedpkg fork
----
In case `fedpkg fork` complains about missing Pagure token,
In case `fedpkg fork` complains about missing distgit token,
follow the instructions given in the error message.
These commands result in a local Git repository with remotes:
@ -152,7 +152,7 @@ remote: Create a pull-request for my-changes
remote: https://src.fedoraproject.org/fork/username/rpms/some-package/diff/rawhide..my-changes
----
You can also create pull request for any branch in the src.fp.o web UI for your fork.
You can also create pull request for any branch in the distgit web UI for your fork.
The pull request form asks you to fill description,
which is auto-filled with commit changelog.

View file

@ -13,7 +13,7 @@ in reporting such issues to the right people.
Any issue that requires direct work on Fedora's infrastructure
should be reported using the
https://forge.fedoraproject.org/infra/tickets[Fedora Infrastructure issue tracker].
https://forge.fedoraproject.org/infra/tickets/issues[Fedora Infrastructure issue tracker].
This would include frozen or failing build systems.
For issues within packages, see