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

Document the system.conf tokens in the manual page #1251

Open
evelikov opened this issue Sep 22, 2023 · 6 comments
Open

Document the system.conf tokens in the manual page #1251

evelikov opened this issue Sep 22, 2023 · 6 comments
Labels
documentation Patch targets fixing or extending documentation enhancement Adds new functionality or enhanced handling to RAUC help wanted
Milestone

Comments

@evelikov
Copy link

Is your feature request related to a problem? Please describe.

Currently man rauc mentions /etc/rauc/system.conf and that it has an ini style format. Although it does no cover the sections and options one can use within. Currently one has to (admittedly very useful) readthedocs website.

Having the information available offline would be amazing.

Describe the solution you'd like

Enhance the existing rauc manual entry to cover the sections/option/etc supported by system.conf

Describe alternatives you've considered

Depending on size or how annoying it's to auto-generate, a separate manual page might be easier? I don't have any opinion on the topic.

@evelikov evelikov added the enhancement Adds new functionality or enhanced handling to RAUC label Sep 22, 2023
@ejoerns
Copy link
Member

ejoerns commented Sep 22, 2023

I'd say a man page is primarily useful if the system you read it on is the system you use this information for.
So the man page should primarily be useful for 'host tool' usage, i.e. for creating or modifying bundles.

The system.conf is typically something that is generated offline (as in 'not on the live system') by a build system or similar.
For this use case, I would consider the reference documentation from the docs/ folder (or from readthedocs) sufficient.

How would you use the man page? Do you write the system.conf on your live system?

@evelikov
Copy link
Author

Some context - last week I was travelling for All Systems Go 2023 where I met some of your amazing colleagues.

As Jan mentioned the http-streaming, which got interested and went through the manual page. Only the notice the notable gap wrt system.conf.

In terms of actual use-case, I would say a bit of both: be that live system and standalone devel/config.

For example: while working on the SteamDeck, we had cases where the system.conf was missing all together or had invalid modifications - some of those will be reduced with #1252.

Even so, having at least a basic aka terse offline documentation would be appreciated. One might be flying, or dare I say it ISP or rtd.io may go down.

Having a documented /usr/share/doc/rauc/system.conf would be nice alternative, although there wasn't one last time I checked.

@ejoerns ejoerns added the documentation Patch targets fixing or extending documentation label Sep 22, 2023
@jluebbe
Copy link
Member

jluebbe commented Sep 22, 2023

It seems a full example system.conf (which package based distros could install to /usr/share/doc/) would be useful to have.

If we can figure out nice way to generate the manpage and the HTML docs from the same input, that would be nice. Otherwise, perhaps the HTML (or text?) docs should be built and installed to /usr/share/doc/ on systems where end-users are expected to log in?

@evelikov
Copy link
Author

Having html/text docs in /usr/share/doc would also be great for the developer side, thanks. But less so for the target device, due to size constrains.

Please don't read the latter as a deterrent.

@jluebbe
Copy link
Member

jluebbe commented Oct 24, 2023

OK, we see two easier improvements, which could be done without duplicating the information from the reference.rst:

  • add a meson to install the generated html documentation to /usr/share/doc/rauc/html
  • create a commented example system.conf, explaining the common options

With this, the distros can decide if they want to install that by default.

@jluebbe jluebbe added this to the Unplanned milestone Oct 24, 2023
evelikov pushed a commit to evelikov/rauc that referenced this issue Oct 24, 2023
Currently there is a limited set of documentation installed by default.
We already have the sphinx docs wired into the meson build, although
there is no way for the end-user to install them.

Add an `htmldocs` option which guards both build and install of the
docs. Thus people can opt out of, even if they have sphinx installed.

Issue: rauc#1251
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
@evelikov
Copy link
Author

First piece - installing htmldocs to /usr/share/docs/rauc/html - should be resolved with #1269.

evelikov pushed a commit to evelikov/rauc that referenced this issue Oct 24, 2023
Currently there is a limited set of documentation installed by default.
We already have the sphinx docs wired into the meson build, although
there is no way for the end-user to install them.

Add an `htmldocs` option which guards both build and install of the
docs. Thus people can opt out of, even if they have sphinx installed.

v2:
 - disable by default
 - tweak CI doc stage, to build a minimal almost docs-only build

Issue: rauc#1251
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
evelikov pushed a commit to evelikov/rauc that referenced this issue Oct 26, 2023
Currently there is a limited set of documentation installed by default.
We already have the sphinx docs wired into the meson build, although
there is no way for the end-user to install them.

Add an `htmldocs` option which guards both build and install of the
docs. Thus people can opt out of, even if they have sphinx installed.

v2:
 - disable by default
 - tweak CI doc stage, to build a minimal almost docs-only build

v3:
 - allow building, without forcing the installation

Issue: rauc#1251
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
evelikov pushed a commit to evelikov/rauc that referenced this issue Nov 7, 2023
Currently there is a limited set of documentation installed by default.
We already have the sphinx docs wired into the meson build, although
there is no way for the end-user to install them.

Add an `htmldocs` option which guards both build and install of the
docs. Thus people can opt out of, even if they have sphinx installed.

v2:
 - disable by default
 - tweak CI doc stage, to build a minimal almost docs-only build

v3:
 - allow building, without forcing the installation

v4:
 - capitalise HTML in meson_options
 - trim down meson setup command

Issue: rauc#1251
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Patch targets fixing or extending documentation enhancement Adds new functionality or enhanced handling to RAUC help wanted
Projects
None yet
Development

No branches or pull requests

3 participants