Skip to content

Commit 93736ee

Browse files
authored
📖 Add CI to docs (#34)
1 parent f0713b8 commit 93736ee

File tree

10 files changed

+207
-1
lines changed

10 files changed

+207
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docs Publish
2+
on:
3+
push:
4+
branches: ["main"]
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
jobs:
9+
draft:
10+
uses: curvenote/actions/.github/workflows/submit.yml@v1
11+
with:
12+
venue: oxa
13+
kind: docs
14+
collection: docs
15+
path: docs
16+
publish: true
17+
secrets:
18+
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
19+
GITHUB: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/docs.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Docs Preview
2+
on:
3+
pull_request_target:
4+
branches: ["main"]
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
jobs:
9+
draft:
10+
uses: curvenote/actions/.github/workflows/draft.yml@v1
11+
with:
12+
venue: oxa
13+
kind: docs
14+
collection: docs
15+
path: docs
16+
secrets:
17+
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
18+
GITHUB: ${{ secrets.GITHUB_TOKEN }}

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ __pycache__
1212

1313
# Documentation
1414
docs/_build
15-
docs/schema

‎docs/schema/block.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(oxa:block)=
2+
3+
## Block
4+
5+
6+
Union of all block content types.
7+
8+
9+
Union of: @oxa:heading, @oxa:paragraph

‎docs/schema/document.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
(oxa:document)=
2+
3+
## Document
4+
5+
6+
A document with metadata, title, and block content.
7+
8+
9+
__type__: _string_, ("Document")
10+
11+
: The type discriminator for Document nodes.
12+
13+
__id__: __string__
14+
15+
: A unique identifier for the node.
16+
17+
__classes__: __array__ ("string")
18+
19+
: A list of class names for styling or semantics.
20+
21+
__data__: __object__
22+
23+
: Arbitrary key-value data attached to the node.
24+
25+
__metadata__: __object__
26+
27+
: Arbitrary document metadata.
28+
29+
__title__: __array__ ("Inline")
30+
31+
: The document title as inline content.
32+
: See @oxa:inline
33+
34+
__children__: __array__ ("Block")
35+
36+
: The block content of the document.
37+
: See @oxa:block

‎docs/schema/heading.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
(oxa:heading)=
2+
3+
## Heading
4+
5+
6+
A heading with a level and inline content.
7+
8+
9+
__type__: _string_, ("Heading")
10+
11+
: The type discriminator for Heading nodes.
12+
13+
__id__: __string__
14+
15+
: A unique identifier for the node.
16+
17+
__classes__: __array__ ("string")
18+
19+
: A list of class names for styling or semantics.
20+
21+
__data__: __object__
22+
23+
: Arbitrary key-value data attached to the node.
24+
25+
__level__: __number__
26+
27+
: The heading level (1-6).
28+
29+
__children__: __array__ ("Inline")
30+
31+
: The inline content of the heading.
32+
: See @oxa:inline

‎docs/schema/inline.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(oxa:inline)=
2+
3+
## Inline
4+
5+
6+
Union of all inline content types.
7+
8+
9+
Union of: @oxa:text, @oxa:strong

‎docs/schema/paragraph.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
(oxa:paragraph)=
2+
3+
## Paragraph
4+
5+
6+
A paragraph of inline content.
7+
8+
9+
__type__: _string_, ("Paragraph")
10+
11+
: The type discriminator for Paragraph nodes.
12+
13+
__id__: __string__
14+
15+
: A unique identifier for the node.
16+
17+
__classes__: __array__ ("string")
18+
19+
: A list of class names for styling or semantics.
20+
21+
__data__: __object__
22+
23+
: Arbitrary key-value data attached to the node.
24+
25+
__children__: __array__ ("Inline")
26+
27+
: The inline content of the paragraph.
28+
: See @oxa:inline

‎docs/schema/strong.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
(oxa:strong)=
2+
3+
## Strong
4+
5+
6+
Strongly emphasized content (typically bold).
7+
8+
9+
__type__: _string_, ("Strong")
10+
11+
: The type discriminator for Strong nodes.
12+
13+
__id__: __string__
14+
15+
: A unique identifier for the node.
16+
17+
__classes__: __array__ ("string")
18+
19+
: A list of class names for styling or semantics.
20+
21+
__data__: __object__
22+
23+
: Arbitrary key-value data attached to the node.
24+
25+
__children__: __array__ ("Inline")
26+
27+
: The inline content to emphasize.
28+
: See @oxa:inline

‎docs/schema/text.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
(oxa:text)=
2+
3+
## Text
4+
5+
6+
A text node containing a string value.
7+
8+
9+
__type__: _string_, ("Text")
10+
11+
: The type discriminator for Text nodes.
12+
13+
__id__: __string__
14+
15+
: A unique identifier for the node.
16+
17+
__classes__: __array__ ("string")
18+
19+
: A list of class names for styling or semantics.
20+
21+
__data__: __object__
22+
23+
: Arbitrary key-value data attached to the node.
24+
25+
__value__: __string__
26+
27+
: The text content.

0 commit comments

Comments
 (0)