summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Ensure trailing slash on output dir for DocBookShaun McCance2022-10-121-0/+3
| | | | | | xsltproc is picky. We already do this for Mallard, but missed it for DocBook. https://gitlab.gnome.org/GNOME/yelp-tools/-/issues/22
* yelp.m4: Avoid argument list too long error when cleaningDan Nicholson2022-02-061-1/+3
| | | | https://gitlab.gnome.org/GNOME/yelp-tools/-/merge_requests/5
* Use /usr/bin/python3 as shebangDominique Leuenberger2021-02-113-3/+3
| | | | | | | I don't think any distro has python3 installed in /bin. Some distros have completed UsrMerge, which makes /bin a symlink to /usr/bin, so /bin/python3 is available on those distros. But it breaks on all other distros.
* Adding --skip option to list filenames to skipShaun McCance2021-02-071-11/+28
| | | | | | This is mostly useful in config files, where you have specific pages that you might want exempted from some custom checker, but you don't want to force people to explicitly list which filenames to test.
* yelp-check: return 1 on failure for custom checkersShaun McCance2021-02-071-3/+3
|
* yelp-check: Use desc if blurb not set on --help for custom checkersShaun McCance2021-02-031-0/+3
|
* Remove autotools stuff and fix up some data filespython-portShaun McCance2021-02-011-6/+0
|
* Switch to new python toolsShaun McCance2021-02-017-4360/+2342
|
* yelp-build.py: Convert yelp-build to pythonShaun McCance2021-01-301-0/+834
|
* yelp-new.py: Converted yelp-new to pythonShaun McCance2021-01-162-0/+327
|
* Simplifying the meson configure optionsShaun McCance2020-12-261-1/+1
|
* Merge branch 'master' into tchaik/yelp-tools-wip/tchaik/mesonShaun McCance2020-12-263-8/+1270
|\
| * yelp-check.py: Allow custom checkers defined in the config fileShaun McCance2020-12-221-7/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit allows you to specify your own checkers in .yelp-tools.cfg. This concept of how these work is very similar to Schematron, but very simplified in a basic config file syntax. For example, here's how to write a check to make sure you always have a non-empty desc element: [namespaces] mal = http://projectmallard.org/1.0/ [check:gnome-desc] select = /mal:page/mal:info assert = normalize-space(mal:desc) != '' message = Must have non-empty desc
| * yelp-check.py: Add allow list to `yelp-check hrefs`Shaun McCance2020-12-211-1/+8
| |
| * yelp-check.py: Add the ability to read from a config fileShaun McCance2020-12-211-128/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now add a .yelp-tools.cfg file to provide default options. All the command-line args now have long forms, and you can use that long form in the cfg file under a section called [check:*tool*], where *tool* is the specific subcommand. For example, let's say you always want strict validation, but to allow the ITS namespace: [check:validate] strict = true allow = http://www.w3.org/2005/11/its You can also use the [check] secton for options that apply to all subcommands. This is most useful for Mallard sites: [check] site = true
| * yelp-check.py: Default to cwd if no file args are passedShaun McCance2020-12-181-0/+2
| |
| * yelp-check.py: Add https CC URLs to hrefs allow listShaun McCance2020-12-181-2/+4
| |
| * Initial work on converting yelp-check to pythonShaun McCance2020-06-131-0/+1042
| |
| * Fully fix warnings when there are no stack filesShaun McCance2019-06-121-1/+1
| | | | | | | | | | Previous fix had a mistake. I added a check in two places, did some copy pasta, and failed to change a variable name.
| * yelp-check: Fix validation for DocBook 5 with https redirectsShaun McCance2019-04-261-2/+20
| | | | | | | | | | | | | | | | At some point, docbook.org starting doing 301 redirects to send all requests thru https. Unfortunately, neither jing nor xmllint likes these redirects, and xmllint doesn't do https at all. So, we have to do some special casing depending on the validator and on whether we have local copies in the catalogs. Fun stuff.
| * yelp-build: Don't spit out error about missing stack filesShaun McCance2019-01-131-1/+3
| | | | | | | | | | Bare sh doesn't have nullglob, so we have to check the existence of filenames we got from iterating over a glob.
| * yelp-build: Support Mallard stacksShaun McCance2018-10-201-5/+12
| |
* | build: Port to meson build systemMartin Blanchard2018-09-031-0/+68
|/ | | | | | | | | | The meson is a build system focused on speed an ease of use, which helps speeding up the software development. https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting https://gitlab.gnome.org/GNOME/yelp-tools/issues/17 https://bugzilla.gnome.org/show_bug.cgi?id=794279
* yelp.m4: Disable net access in make checkShaun McCance2018-02-061-2/+2
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=772334 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839549
* Adapt to recent major changes in yelp-xslShaun McCance2017-07-071-77/+9
|
* yelp-check: Add --jing option to validate command to use jingShaun McCance2017-02-221-2/+15
| | | | | | libxml2 doesn't always give the best error messages for validation failures. With this option, you can choose to use jing instead of xmllint, which might give you better error messages in some cases.
* yelp-check: Fixed style list handling in `yelp-check style`Shaun McCance2017-02-141-4/+4
|
* yelp-check: Add style command to list page stylesShaun McCance2017-02-141-0/+132
|
* yelp-check: Remember URLs we already checked in `hrefs`Shaun McCance2016-10-071-3/+16
|
* yelp-check: Added Mallard Sites support for orphans commandShaun McCance2015-07-071-12/+37
|
* yelp-check: Support Mallard Sites for links checkerShaun McCance2015-07-061-26/+43
|
* yelp-check: Support Mallard Sites for media checkerShaun McCance2015-07-051-32/+64
|
* yelp-check: Support Mallard Sites for statusShaun McCance2015-06-301-1/+11
|
* yelp-check: Support Mallard Sites for idsShaun McCance2015-06-191-15/+29
|
* yelp-check: Always quote "$@"Shaun McCance2015-06-191-5/+5
|
* yelp-check: Fix pipe flow for licenseShaun McCance2015-06-191-6/+5
| | | | | | Getting return values for commands in a pipeline is hard. I did it wrong. I'm giving up for now for license, since error exits aren't normal for the license subcommand.
* yelp-check: Support Mallard Sites for hrefsShaun McCance2015-06-181-57/+61
|
* yelp-build: Mallard Sites support for cacheShaun McCance2015-06-171-14/+46
| | | | | | Probably won't gain Sites support for building HTML. Use a site tool like Pintail for that. But being able to generate site-aware cache means more of the yelp-check commands can be site-aware.
* yelp-check: Cleanup after Sites support for validateShaun McCance2015-06-171-29/+6
|
* yelp-check: Mallard Sites support for validateShaun McCance2015-06-151-0/+28
|
* yelp-check: Support Mallard Sites for comments and licenseShaun McCance2015-06-151-37/+104
|
* Convert tabs to spacesShaun McCance2015-06-152-18/+22
|
* Accept -h as well as --helpShaun McCance2015-06-012-16/+16
|
* yelp-build: Drop use of non-portable `expr substr`, #743911Shaun McCance2015-06-011-6/+5
|
* yelp-build: Fix some broken and non-portable expr usage, #743911Shaun McCance2015-05-311-6/+4
| | | | | | | | Both `expr index` and `expr substr` are non-portable. What's more, my usage of `expr index` was wrong, and there was a bug that nobody ever seemed to trip up. Fix it and use portable stuff. Bug #743911 partially addressed.
* yelp-build: Fixed media copying with -i for MallardShaun McCance2015-05-311-1/+1
| | | | | | | When I changed the way yelp-build finds media files for Mallard documents, I forgot to change a variable name in one place. So the -i option to ignore missing media files actually causes it to ignore all media files.
* yelp-check: Check media correctly in subdirs, #727557Shaun McCance2015-04-031-2/+11
|
* Fixing make install issueSebastian Geiger2014-10-091-1/+1
| | | | | | | | | | | * This patch fixes bug #701959 which describes and issue that prevents make install from being successfully run if make has not been run first. * The problem is that make install requires some generated files to be present that are only generated by make. The solution was to add $(_HELP_LC_FILES) as a dependency to install-help so that these files are always generated when make install is run.
* Fixing make distcheck issueSebastian Geiger2014-10-081-1/+1
| | | | | | | | | | | * This patch fixes bug #738142 which describes and issue that prevents make distcheck from being successfully run if make has not been run first. * The problem is that make distcheck requires some generated files to be present that are only generated by make. The solution was to add $(_HELP_LC_FILES) as a dependency to distdir-help-files so that these files are always generated when make distcheck is run.
* yelp-check: Support .page.stub filesShaun McCance2014-06-181-2/+2
|