Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusable AsciiDoc utils #100

Merged
merged 26 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
20ca776
Reusable Asciidoc utils
benjaminleonard Dec 6, 2024
06b136b
Delete index.ts
benjaminleonard Dec 6, 2024
4baf24d
Handle empty extensions
benjaminleonard Dec 6, 2024
0829c80
More shared exports
benjaminleonard Dec 6, 2024
af7c6b5
Switch parse source
benjaminleonard Dec 6, 2024
528a130
Move `attrs`
benjaminleonard Dec 6, 2024
58fcbf4
Export `attrs`
benjaminleonard Dec 6, 2024
a28ac36
Shared inline converter and ToC
benjaminleonard Dec 13, 2024
fdd8ab6
Fix icon
benjaminleonard Dec 13, 2024
87d60df
Add mermaid support to listing
benjaminleonard Dec 13, 2024
fc65d31
License
benjaminleonard Dec 13, 2024
c74e439
Export should be listing not mermaid
benjaminleonard Dec 13, 2024
5c25e1b
Undo mermaid listing
benjaminleonard Dec 13, 2024
f6e04f5
Test `renderWithBreaks`
benjaminleonard Dec 16, 2024
2a63c1e
Animated accordion styles
benjaminleonard Dec 16, 2024
23ec093
Hide desktop ToC
benjaminleonard Dec 16, 2024
17b0ec1
Take `className` on ToC instead
benjaminleonard Dec 16, 2024
6a04515
Controlled ToC / autoclose
benjaminleonard Dec 17, 2024
7d38541
Remove unused title
benjaminleonard Dec 17, 2024
2a58f32
ToC padding tweak
benjaminleonard Dec 17, 2024
09651fc
Fix accordion trigger padding
benjaminleonard Dec 17, 2024
95a3aa1
`useDelegatedReactRouterLinks`
benjaminleonard Dec 17, 2024
1e25cdf
Switch let for const
benjaminleonard Dec 17, 2024
25c4f32
Export and add license
benjaminleonard Dec 17, 2024
44f1c04
Tweak license
benjaminleonard Dec 17, 2024
7229a98
Add copyright ignore `use-delegated-links` license
benjaminleonard Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/src/asciidoc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
*/
import Admonition from './Admonition'
import Table from './Table'
import { handleDocument, highlight, loadAsciidoctor } from './util'

export const AsciiDocBlocks = {
const AsciiDocBlocks = {
Admonition,
Table,
}

export { AsciiDocBlocks, handleDocument, highlight, loadAsciidoctor }
72 changes: 72 additions & 0 deletions components/src/asciidoc/langs/oxql.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "oxql",
"repository": {
"keywords": {
"patterns": [
{
"name": "keyword.control.oxql",
"match": "\\b(if|while|for|return)\\b"
}
]
},
"strings": {
"name": "string.quoted.double.oxql",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.oxql",
"match": "\\\\."
}
]
}
},
"scopeName": "source.oxql",
"patterns": [
{
"name": "keyword.control.oxql",
"match": "\\b(get|join|align|filter|group_by)\\b"
},
{
"name": "string.quoted.double.oxql",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.oxql",
"match": "\\\\."
}
]
},
{
"name": "constant.numeric.oxql",
"match": "\\b\\d+[smhdw]\\b"
},
{
"name": "constant.numeric.datetime.oxql",
"match": "@\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}"
},
{
"name": "constant.numeric.function.oxql",
"match": "@now\\(\\)"
},
{
"name": "constant.numeric.oxql",
"match": "\\b\\d+\\b"
},
{
"name": "comment.block.oxql",
"begin": "/\\*",
"end": "\\*/"
},
{
"name": "comment.line.double-slash.oxql",
"match": "//.*$"
},
{
"name": "keyword.operator.oxql",
"match": "\\|"
}
]
}
Loading
Loading