Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More documentation improvements #1253

Merged

Conversation

GeorgesStavracas
Copy link
Member

This is a relatively big reorganization of the documentation pages, hopefulle for the better.

This PR:

  • Adds an Introduction page
  • Adds a Contributing page (and updates CONTRIBUTING.md to point to the online docs)
  • Adds a Portal Backends page, and moves quite a few things there
  • Documents the .portal file format
  • Documents a bit more the portals.config file format
  • Documents what's needed for XDG Desktop Portal to discover new backends
  • Moves the Background Apps Monitoring API page into the Portal Backends page
  • Adds a little Python script that fixes RST titles (while GLib 2.78.4 doesn't hit CI) and replaces the reverse domain name titles of the generated pages

Overall I'm quite happy with the end result. You can see how it looks here: https://georgesstavracas.github.io/xdg-desktop-portal/docs/index.html

* Add an Introduction page
* Split Common Conventions in subpages
* Document various backendy things like the .portal file and the
  config file
* Rename various pages
* Add a Contributing page
This little script does two adjustments to the doc files:

 1. Replace the titles of the files with a shorter string
 2. Fix stray unreplaced strings in the RST files

It's a custom approach for XDG Desktop Portal and not necessarily
upstreamable.
It was 2 levels too much, which made Sphinx consider it an admonition.
This handle_token entry is not part of the *backend* API, only the
frontend.

Closes: flatpak#938
Copy link
Collaborator

@hfiguiere hfiguiere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@swick swick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. There are a few things I think we could improve.

doc/introduction.rst Outdated Show resolved Hide resolved
doc/introduction.rst Outdated Show resolved Hide resolved
doc/contributing.rst Show resolved Hide resolved
Copy link
Collaborator

@ebassi ebassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, I've opened this MR for GLib to generate shorter titles for the D-Bus interface pages with gdbus-codegen.

As per swick's suggestions.
@GeorgesStavracas
Copy link
Member Author

For reference, I've opened this MR for GLib to generate shorter titles for the D-Bus interface pages with gdbus-codegen.

Thank you, very much appreciated. I'll update the Python script when this MR reaches the CI image.

@GeorgesStavracas
Copy link
Member Author

In the spirit of keeping things moving, I'll merge this PR. If you have further improvements, please open up new PRs. Thanks!

@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Dec 29, 2023
Merged via the queue into flatpak:main with commit 9308bcf Dec 29, 2023
4 checks passed
@GeorgesStavracas GeorgesStavracas deleted the gbsneto/more-documentation branch December 29, 2023 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triaged
Status: Done
Development

Successfully merging this pull request may close these issues.

Possible typo in org.freedesktop.impl.portal.FileChooser SaveFiles method
4 participants