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

nixos/manual: warn on missing xml:id #55396

Merged
merged 1 commit into from Feb 7, 2019
Merged

Conversation

layus
Copy link
Member

@layus layus commented Feb 7, 2019

In order to keep the manual reproducible, we need to avoid randomly
generated ids. This patch enables warning on missing ids.
A further step could turn them to errors, but the case of partintro
blocks needs to be solved first.

See #55375


@layus layus mentioned this pull request Feb 7, 2019
10 tasks
@@ -265,6 +265,7 @@ in rec {
xsltproc \
${manualXsltprocOptions} \
--stringparam target.database.document "${olinkDB}/olinkdb.xml" \
--stringparam id.warnings "1" \
Copy link
Member

Choose a reason for hiding this comment

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

You're my hero for this. Maybe better to extend this list:

manualXsltprocOptions = toString [
?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, this seems to only impact HTML documents. But adding it to the global options may be better if someone only tests it with some other version without generating the HTML. Not too sure really. What do you think ?

@grahamc
Copy link
Member

grahamc commented Feb 7, 2019 via email

Copy link
Member

@matthewbauer matthewbauer left a comment

Choose a reason for hiding this comment

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

Yep this makes sense to warn about even without the reproducibility issue.

@grahamc grahamc merged commit d7bb260 into NixOS:master Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants