Skip to content

Commit

Permalink
Docs: Link Adjustable Hijri Calendar from the cookbook page
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomato committed Sep 6, 2024
1 parent 7bdbdb9 commit 0af069f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,3 +559,9 @@ Since they are generally larger than these cookbook recipes, they're on their ow
Extend `Temporal` to support arbitrarily-large years (e.g., **+635427810-02-02**) for astronomical purposes.

[Extra-expanded years](cookbook-expandedyears.md)

### Adjustable Hijri calendar

Extend `Temporal` to support adjustment days for the Hijri calendars, which are sometimes required when the start of the month is based on astronomical observations.

[Adjustable Hijri calendar](hijri-days-adjustments.md)
2 changes: 1 addition & 1 deletion docs/cookbook/hijriDaysAdjustments.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as Temporal from '../../polyfill/lib/temporal.mjs';

/**
* AdjustableHijriPlainDate: A class for customizing Hijri date display.
* AdjustableHijriTemporal: A class for customizing Hijri date display.
*
* This class allows for adjustment of Hijri dates by shifting days forward or backward.
* It's designed to:
Expand Down
2 changes: 2 additions & 0 deletions docs/hijri-days-adjustments.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ Key features of this implementation:

> **NOTE**: This example is intended for basic Hijri date adjustments and visual alignment. It does not implement comprehensive calendar customization or detailed Hijri calendar variants. For more complex Hijri calendar adjustments or variants, a more sophisticated implementation would be necessary.
```javascript
{{cookbook/hijriDaysAdjustments.mjs}}
```

0 comments on commit 0af069f

Please sign in to comment.