-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
170 additions
and
122 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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,22 +1,46 @@ | ||
#import "template.typ": project, raw-bg | ||
#import "util.typ": package, bbox | ||
#import "util.typ": package, bbox, mantys | ||
|
||
#show: project.with( | ||
package: package, | ||
subtitle: [/ˈhaɪdrə/ \ Of headings and headers], | ||
date: datetime.today(), | ||
abstract: package.description, | ||
#show "Hydra": mantys.package | ||
|
||
#show: mantys.mantys.with( | ||
..package, | ||
title: [hydra], | ||
subtitle: [/ˈhaɪdrə/], | ||
date: datetime.today().display(), | ||
abstract: [ | ||
Hydra provides a simple API to querying for headings und section like elements and displaying them in headers or footers. | ||
It exposes internal modules and functions for maximum control. | ||
], | ||
) | ||
|
||
#[ | ||
#show raw.where(block: false): bbox.with(fill: raw-bg) | ||
#show raw: it => { | ||
show "{{VERSION}}": package.version | ||
it | ||
} | ||
|
||
= Manifest | ||
Hydra aims to be: | ||
- simple to use | ||
- importing a function and using it should be all that is needed | ||
- setup required to make the package work should be avoided | ||
- unsurprising | ||
- parameters should have sensible names and behave as one would expect | ||
- deviations from this must be documented and easily accesible to Typst novices | ||
- interoperable | ||
- Hydra should be easy to use with other packages by default or provide sufficient configuration to allow this in other ways | ||
- minimal | ||
- it should only provide features which are specifically used for heading and section querying and display | ||
|
||
If you think its behvior is surprising, you believe you found a bug or you think its defaults or parameters are not sufficient for your use case, please open an issue at #text(eastern, link("https://github.com/tingerrr/hydra")[GitHub:tingerrr/hydra]). | ||
Contributions are also welcome! | ||
|
||
= Introduction | ||
#include "chapters/1-intro.typ" | ||
= Guide | ||
== Introduction | ||
#include "chapters/1-intro.typ" | ||
|
||
= Features | ||
#include "chapters/2-features.typ" | ||
] | ||
== Features | ||
#include "chapters/2-features.typ" | ||
|
||
= Reference | ||
#include "chapters/3-reference.typ" |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#import "@local/mantys:0.1.2" | ||
|
||
#let package = toml("/typst.toml").package | ||
|
||
#let load-examples(example) = { | ||
|
Oops, something went wrong.