Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 56 additions & 2 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ jobs:
build:
name: "Build"

runs-on: "ubuntu-20.04"
runs-on: "ubuntu-24.04"

strategy:
matrix:
language:
- "ja"

steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
extensions: "sqlite3"
coverage: "none"

- name: "Checkout php/doc-${{ matrix.language }}"
uses: "actions/checkout@v4"
with:
Expand All @@ -39,5 +46,52 @@ jobs:
path: "doc-base"
repository: "php/doc-base"

- name: "Checkout php/phd"
uses: "actions/checkout@v4"
with:
path: "phd"
repository: "php/phd"

- name: "Build documentation for ${{ matrix.language }}"
run: "php8.0 doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"
run: "php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"

- name: "Render documentation for ${{ matrix.language }}"
run: "php phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml"

- name: "Save documentation for ${{ matrix.language }}"
uses: "actions/upload-artifact@v4"
with:
name: "manual-html"
path: "output/php-chunked-xhtml"
retention-days: 7

textlint:
name: "Textlint"

needs: ["build"]
runs-on: "ubuntu-24.04"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Install Node.js"
uses: "actions/setup-node@v4"
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "build/package-lock.json"

- name: "Download artifacts"
uses: "actions/download-artifact@v4"
with:
name: "manual-html"
path: "build/output"

- name: "Install textlint"
run: "npm ci --no-audit"
working-directory: "build"

- name: "Run textlint"
run: "npx textlint --color ./output"
working-directory: "build"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
2 changes: 1 addition & 1 deletion appendices/migration84/other-changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
ビルドされる内容は、
<filename class="headerfile">ibase.h</filename> 内の
<constant>FB_API_VER</constant> の値によって変わります。
この情報を取得するために新しい静的メソッド <methodname>Pdo\Firebird::getApiVersion</methodname>
この情報を取得するために新しい static メソッド <methodname>Pdo\Firebird::getApiVersion</methodname>
が追加されました。
この情報は <function>phpinfo</function> からも参照できます。
</simpara>
Expand Down
10 changes: 10 additions & 0 deletions build/.textlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
"html"
],
"rules": {
"prh": {
"rulePaths" :["prh.yml"]
}
}
}
Loading