#319 Is there a way to remove all Warning Messages?
Closed: stale a year ago by pboy. Opened 3 years ago by hhlp.

These are the involucred files:

dnf-system-upgrade
publish-rpm-on-copr
raspberry-pi
securing-the-system-by-keeping-it-up-to-date
using-aide

How did I Detect it?

asciidoctor -a attribute-missing=warn --failure-level=WARN sample.adoc
  1. These One::

majorosver -> link to another antora instance to link a document presetn there.
nextver > next version of fedora.

These are part of Antora not Asciidoctor...

  1. The other Ones seems to have a class of reserved words:

name
version

Regards.,


I've removed warning about consecutive number

debug-dracut-problems.adoc

in this https://pagure.io/fedora-docs/quick-docs/pull-request/318

Regards.,

Fixed most of them in #332; I don't know how to find the majorosver problem though...

Metadata Update from @pbokoc:
- Issue tagged with: help wanted

3 years ago

You're using the -a flag, but not to its full potential.

You should instead provide the definition of partialsdir, so that it's not missing. Same with any other attributes that the antora processor would autoload.

For example, I can scan all documents in the repo with this zsh syntax:

cd /path/to/quick-docs
for file in modules/**/*.adoc; do
  asciidoctor -a partialsdir=`pwd`/modules/ROOT/pages/_partials \
    -a majorosver=36 -a prevver=35 -a context="" \
    -a attribute-missing=warn --failure-level=WARN $file;
  if [ $? != 0 ]; then echo "Warnings/errors in $file"; fi
done

...And I'll see only genuine errors (there are a few). It'll also avoid creating .html files of all the pages.

Closed because obiously fixed (nothing to do anymore)

Metadata Update from @pboy:
- Issue close_status updated to: stale
- Issue status updated to: Closed (was: Open)

a year ago

Even though this is closed, the code in my comment above contains some errors I wanted to correct in case anyone happens upon it in the future. It should have been:

cd /path/to/quick-docs
for file in modules/**/*.adoc; do
  asciidoctor -a partialsdir=`pwd`/modules/ROOT/pages/_partials \
    -a majorosver=36 -a prevver=35 -a context="" \
    -a attribute-missing=warn --failure-level=WARN \
    < $file >/dev/null;
  if [ $? != 0 ]; then echo "Warnings/errors in $file"; fi
done

That will actually avoid creating all of the rendered .html versions of the .adoc sources, unlike the previous version.

Login to comment on this ticket.

Metadata