Repository navigation
Add a documentation website - #22
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #22 +/- ##
=========================================
Coverage 95.65% 95.65%
Complexity 114 114
=========================================
Files 1 1
Lines 230 230
=========================================
Hits 220 220
Misses 10 10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The docs were a single README listing method names. This adds a VitePress site under docs/, deployed to GitHub Pages by a workflow on pushes to master, with the same setup dereuromark/cakephp-decimal uses. Guide pages cover installation, creating decimals, arithmetic, scale, rounding, comparison and conversion. Reference pages hold the full API table, integrations, alternatives (moved over from the wiki) and upgrade notes for the behavior changes since 1.3. The root README now points at the site and keeps a short summary. The contributing notes moved there from docs/README.md. docs/ is excluded from the Composer dist archive.
dereuromark
force-pushed
the
docs-site
branch
from
October 11, 2026 14:46
6a7bb82 to
5d2d496
Compare
dereuromark
enabled auto-merge (squash)
October 11, 2026 14:47
dereuromark
disabled auto-merge
October 11, 2026 14:51
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documentation was one README that listed method names. This adds a VitePress site under
docs/, built and deployed to GitHub Pages by.github/workflows/deploy-docs.ymlon pushes tomaster. Setup and theme followdereuromark/cakephp-decimal, with a blue palette and its own logo.Target URL: https://php-collective.github.io/decimal-object/
Pages
Every example output was produced by running the code against this branch.
Things the old docs did not mention and the new ones do:
divide(),pow()andsqrt()cut off at the scale and do not round.==on two objects does not compare values.0is ignored,ROUND_FLOORandROUND_CEILround to whole numbers only, unsupported modes round half up, andmod()uses the scale of the left operand.Other changes
docs/README.md.docs/isexport-ignored so it stays out of Composer installs.Before merging
GitHub Pages is not enabled on this repository yet. It needs Settings > Pages > Source set to "GitHub Actions", otherwise the deploy job fails.
docs/reference/upgrading.mdis headed "From 1.3" and does not name the next version. It ends with a "Coming in 2.0" table for the changes in #23.