From 1ac6bae2987b4d98c34070238037620d3e1629a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Sun, 20 Sep 2026 17:48:09 +0200 Subject: [PATCH] Normalize repository files --- .gitattributes | 5 ++++- .gitignore | 4 ++-- CONTRIBUTING.md | 30 ------------------------------ README.md | 14 ++++++++------ SECURITY.md | 8 -------- SUPPORT.md | 9 --------- 6 files changed, 14 insertions(+), 56 deletions(-) delete mode 100644 CONTRIBUTING.md delete mode 100644 SECURITY.md delete mode 100644 SUPPORT.md diff --git a/.gitattributes b/.gitattributes index df56cc6..9a009a0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,12 +4,15 @@ /.github export-ignore /.gitignore export-ignore /.php-cs-fixer.dist.php export-ignore +/composer.lock export-ignore /docs export-ignore /phpstan.neon.dist export-ignore -/phpstan-snippets.neon.dist export-ignore /phpunit.xml.dist export-ignore /tests export-ignore /docs/** linguist-documentation +/tests/Fixtures/** -linguist-detectable /tests/fixtures/** -linguist-detectable + +/phpstan-snippets.neon.dist export-ignore /tests/fixtures/** -text diff --git a/.gitignore b/.gitignore index 265fd8a..baa2b80 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ /.phpunit.cache/ /.phpunit.result.cache /.php-cs-fixer.cache -/var/ /coverage/ /coverage.xml -/clover.xml + +/var/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 7069e82..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,30 +0,0 @@ -# Contributing to Alto Markdown - -Contributions should preserve the public contracts, source bytes outside the -requested change, and safe defaults. - -## Prepare a checkout - -```bash -composer install -composer qa -``` - -`composer qa` runs PHPStan, the PHP CS Fixer check, and PHPUnit. Run coverage -separately when a change affects executable code: - -```bash -composer coverage -``` - -The coverage command enforces the repository's 99 percent line floor. - -## Propose a change - -Add or update tests for observable behavior. Update `docs/` and `CHANGELOG.md` -when the public contract changes. Keep parser limits, HTML policies, resource -authority, and file-conflict behavior explicit. - -Open a pull request against `main` only after the complete quality gate passes. -Describe the user-visible result, compatibility impact, and any security or -performance tradeoff. diff --git a/README.md b/README.md index a29f2ec..b0f430b 100644 --- a/README.md +++ b/README.md @@ -169,17 +169,19 @@ Before submitting code, run: composer qa ``` -Changes to public behavior should include tests and documentation. Run -`composer coverage` separately to enforce the 99% line-coverage floor. +Changes to public behavior should include tests and documentation. + +Run `composer coverage` separately to enforce the 99% line-coverage floor. ## Support -ALTO Markdown is open source. You can support its continued development through +ALTO Markdown is open source and independently maintained by +[Simon André](https://smnandre.dev). If it is useful to your work, you can +support its continued development through [GitHub Sponsors](https://github.com/sponsors/smnandre). -Sharing this package with others or -[starring it on GitHub](https://github.com/altophp/markdown) is also much -appreciated. +Sharing the package or +[starring it on GitHub](https://github.com/altophp/markdown) also helps. ## License diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index bf1b62a..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,8 +0,0 @@ -# Security policy - -Do not report a suspected vulnerability through a public GitHub issue. Email -[security@altocoda.com](mailto:security@altocoda.com) with the affected -version, impact, reproduction, and any known mitigation. - -Reports are accepted in English or French and handled through coordinated -disclosure. Avoid including secrets or unrelated personal data. diff --git a/SUPPORT.md b/SUPPORT.md deleted file mode 100644 index c22f1d9..0000000 --- a/SUPPORT.md +++ /dev/null @@ -1,9 +0,0 @@ -# Support - -Use GitHub issues for reproducible bugs and focused feature proposals. Include -the PHP version, package version, selected profile, minimal Markdown input, -expected result, and actual result. - -Usage questions should include the smallest complete code example and explain -the application boundary involved. Do not post security vulnerabilities in a -public issue; follow the private process in `SECURITY.md`.