-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize the port of the documentation to MkDocs
- Loading branch information
Showing
11 changed files
with
135 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: continuous-integration | ||
on: push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch sources | ||
uses: actions/checkout@v4 | ||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
extensions: curl, intl, mbstring, simplexml | ||
php-version: 8.3 | ||
- name: Get cache directory | ||
id: cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{steps.cache.outputs.dir}} | ||
key: ${{runner.os}}-composer-${{hashFiles('**/composer.lock')}} | ||
restore-keys: ${{runner.os}}-composer- | ||
- name: Install dependencies | ||
run: composer install | ||
- name: Run tests | ||
run: composer test | ||
deploy: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch sources | ||
uses: actions/checkout@v4 | ||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
extensions: curl, intl, mbstring, simplexml | ||
php-version: 8.3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
cache: pip | ||
python-version: 3.12 | ||
- name: Install dependencies | ||
run: | | ||
curl --location --output var/castor.phar https://github.com/jolicode/castor/releases/latest/download/castor.linux-amd64.phar | ||
pip install --requirement=etc/requirements.txt | ||
- name: Deploy documentation | ||
run: | | ||
php var/castor.phar doc | ||
mkdocs gh-deploy --config-file=etc/mkdocs.yaml --force |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
site_name: LCOV Reports for PHP | ||
site_url: https://docs.belin.io/lcov.php | ||
site_author: Cédric Belin - [email protected] | ||
site_description: > | ||
Parse and format to LCOV your code coverage reports, in PHP. | ||
The best way to share your code coverage stats. | ||
docs_dir: ../docs | ||
site_dir: ../www | ||
use_directory_urls: false | ||
|
||
edit_uri: edit/main/docs/ | ||
repo_name: cedx/lcov.php | ||
repo_url: https://github.com/cedx/lcov.php | ||
|
||
copyright: Copyright © Cédric Belin | ||
extra: | ||
social: | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/cedx | ||
name: GitHub | ||
- icon: fontawesome/brands/linkedin | ||
link: https://linkedin.com/in/cedxbelin | ||
name: LinkedIn | ||
- icon: fontawesome/brands/mastodon | ||
link: https://mastodon.social/@cedx | ||
name: Mastodon | ||
|
||
extra_css: | ||
- styles.css | ||
|
||
markdown_extensions: | ||
- admonition | ||
- pymdownx.superfences | ||
|
||
nav: | ||
- Home: index.md | ||
- Installation: installation.md | ||
- Usage: | ||
- LCOV parsing: usage/parsing.md | ||
- LCOV formatting: usage/formatting.md | ||
- See also: | ||
- API reference: api/ | ||
- Changelog: changelog.md | ||
- License: license.md | ||
|
||
theme: | ||
favicon: favicon.svg | ||
features: | ||
- content.code.copy | ||
- content.tooltips | ||
- navigation.footer | ||
- navigation.instant | ||
- navigation.instant.progress | ||
- navigation.sections | ||
- search.suggest | ||
font: false | ||
logo: favicon.svg | ||
name: material | ||
palette: | ||
accent: indigo | ||
primary: indigo |