Skip to content

Commit

Permalink
Merge branch 'develop' into release/4.2
Browse files Browse the repository at this point in the history
* develop:
  Add missing --project entry to Arguments listing
  Add IDs to dita command sections
  Move --output option to sort alphabetically
  Clarify options for disabling colored log output
  Use GNU-style double hyphen syntax for consistency
  Move no-color option to alpha sort; format to fix CI
  Migrate Husky to v9
  Bump husky from 8.0.3 to 9.0.10 (#532)
  Bump gradle/wrapper-validation-action from 1 to 2 (#531)
  Bump actions/cache from 3 to 4 (#530)
  Bump peter-evans/create-pull-request from 5 to 6 (#529)
  Bump lint-staged from 15.2.0 to 15.2.1 (#527)
  Bump prettier from 3.1.1 to 3.2.4 (#526)
  Explain the -no-color parameter.
  • Loading branch information
infotexture committed Feb 3, 2024
2 parents 3b0ba22 + 64689b6 commit 5de4e5e
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/wrapper-validation-action@v2
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: ./.github/actions/render

- name: Cache NPM
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -47,7 +47,7 @@ jobs:
rm -fr build
- name: Cache gems
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
curl -sL https://github.com/dita-ot/org.dita-ot.html/archive/refs/heads/${{ env.WEBSITE_PLUGIN_BRANCH }}.zip -o org.dita-ot.html.zip
- name: Cache render DITA-OT
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: dita-ot-${{ env.DITA_OT_VERSION }}
key: ${{ runner.os }}-dita-ot-${{ env.DITA_OT_VERSION }}
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
DITA_HOME: ${{ github.workspace }}/dita-ot-${{ env.DITA_OT_VERSION }}
RELEASE_DITA_OT: ${{ github.workspace }}/src-dita-ot/dita-ot-${{ github.event.inputs.dita-ot-version }}
- name: Create release PR
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
branch: release/${{ github.event.inputs.dita-ot-version }}
title: 'Update site for ${{ github.event.inputs.dita-ot-version }}'
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
cmd: yq -i '.inputs.DITA_OT_VERSION.default = "${{ env.VERSION }}"' '.github/actions/render/action.yml'

- name: Create release PR
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
branch: feature/update-github-actions-${{ env.VERSION }}
title: 'Update docs GitHub Actions for ${{ env.VERSION }}'
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"fmt": "npm run format",
"format": "prettier --write \"**/*.{css,dita*,json,md,scss,xml,yaml,yml}\"",
"lint-staged": "lint-staged --no-stash",
"prepare": "husky install",
"prepare": "husky",
"prettier": "prettier --write \"**/*.{css,dita*,json,md,scss,xml,yaml,yml}\"",
"prettier-check": "prettier --check \"**/*.{css,dita*,json,md,scss,xml,yaml,yml}\"",
"stylelint": "stylelint \"**/*.css\"",
Expand Down Expand Up @@ -46,9 +46,9 @@
},
"devDependencies": {
"@prettier/plugin-xml": "3.2.2",
"husky": "^8.0.3",
"lint-staged": "15.2.0",
"prettier": "3.1.1",
"husky": "^9.0.10",
"lint-staged": "15.2.1",
"prettier": "3.2.4",
"stylelint": "^15.11.0",
"stylelint-config-recommended": "^13.0.0",
"stylelint-config-sass-guidelines": "^10.0.0"
Expand Down
55 changes: 36 additions & 19 deletions parameters/dita-command-arguments.dita
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<parmname>--install</parmname> will still work.)</note>
</section>

<section>
<section id="args">
<title>Arguments</title>
<indexterm><parmname>--input</parmname></indexterm>
<indexterm><parmname>-i</parmname></indexterm>
Expand Down Expand Up @@ -150,10 +150,18 @@
<p conkeyref="conref-task/transtypes"/>
</pd>
</plentry>
<plentry id="project">
<pt>
<parmname>--project</parmname>=<varname>file</varname>
</pt>
<pd>Publish a project file with multiple deliverables.</pd>
<pd>For more information, see
<xref keyref="using-project-files"/>.</pd>
</plentry>
</parml>
</section>

<section>
<section id="subcommands">
<title>Subcommands</title>
<indexterm><cmdname>deliverables</cmdname> subcommand</indexterm>
<indexterm><cmdname>install</cmdname> subcommand</indexterm>
Expand Down Expand Up @@ -254,7 +262,7 @@
</plentry>
</parml>
</section>
<section>
<section id="options">
<title>Options</title>
<indexterm><parmname>-o</parmname></indexterm>
<indexterm><parmname>--output</parmname></indexterm>
Expand Down Expand Up @@ -288,22 +296,6 @@
resources and can slow down the build process, so it should only be enabled when further details are
required to diagnose problems.</pd>
</plentry>
<plentry id="output">
<pt>
<parmname>--output</parmname>=<varname>dir</varname></pt>
<pt>
<parmname>-o</parmname>
<varname>dir</varname>
</pt>
<pd>
<p>Specifies the path of the output directory; the path can be absolute or relative to the current
directory.</p>
<p>This option corresponds to the common parameter
<xref keyref="parameters-base/output.dir"/>.</p>
<p>By default, the output is written to the <filepath>out</filepath> subdirectory of the current
directory.</p>
</pd>
</plentry>
<plentry>
<pt>
<parmname>--filter</parmname>=<varname>files</varname>
Expand Down Expand Up @@ -342,6 +334,31 @@
</pt>
<pd>Write logging messages to a file.</pd>
</plentry>
<plentry>
<pt>
<parmname>--no-color</parmname>
</pt>
<pd>By default, DITA-OT prints certain log messages to the console in color. In terminal environments that do
not support colored output, the ANSI color escape codes will be shown instead. To deactivate colored output,
pass the <parmname>--no-color</parmname> option to the <cmdname>dita</cmdname> command, or set the
<codeph>TERM=dumb</codeph> or <codeph>NO_COLOR</codeph> environment variables.</pd>
</plentry>
<plentry id="output">
<pt>
<parmname>--output</parmname>=<varname>dir</varname></pt>
<pt>
<parmname>-o</parmname>
<varname>dir</varname>
</pt>
<pd>
<p>Specifies the path of the output directory; the path can be absolute or relative to the current
directory.</p>
<p>This option corresponds to the common parameter
<xref keyref="parameters-base/output.dir"/>.</p>
<p>By default, the output is written to the <filepath>out</filepath> subdirectory of the current
directory.</p>
</pd>
</plentry>
<plentry>
<pt>
<parmname>--parameter</parmname>=<varname>value</varname></pt>
Expand Down

0 comments on commit 5de4e5e

Please sign in to comment.