Skip to content

Commit

Permalink
🛠️
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxinghu committed Dec 1, 2020
1 parent 6482dbe commit ce758b5
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.org
Expand Up @@ -44,7 +44,7 @@ The =orga= parser is completely compatible with unified. Which means you get to
Build blazing fast, modern apps and websites with React
#+END_QUOTE

One of the best static website/app generator out there. Trust me; I have tried a lot. Don't be put off by words like =React= or =JavaScript=. Like it or not, they are taking over the web. orga is deeply integrated with gatsby (via [[file:packages/gatsby-transformer-orga/README.md][plugins]] and [[file:packages/gatsby-theme-blorg/README.md][themes]]) to create the tools for building powerful websites without much hassle. Also, leveraging other plugins people build for markdown-based websites. Which is a much richer eco-system, now it's ours too.
One of the best static website/app generator out there. Trust me; I have tried a lot. Don't be put off by words like =React= or =JavaScript=. Like it or not, they are taking over the web. orga is deeply integrated with gatsby (via [[file:packages/gatsby-transformer-orga/README.md][plugins]] and [[file:packages/gatsby-theme-blorg/README.md][themes]]) to create the tools for building powerful websites without much hassle. Also, We can leverage other plugins people build for markdown-based websites. Which is a much richer eco-system, now it's ours too.


* How Does It Work
Expand Down
78 changes: 69 additions & 9 deletions packages/orga/README.org
Expand Up @@ -18,13 +18,73 @@ Turns org-mode content into AST.
~ast~ is an object looks like this:

#+BEGIN_SRC javascript
{ type: 'root',
children:
[ { type: 'headline',
children: [ { type: 'text', children: [], value: 'remember the milk' } ],
level: 1,
keyword: 'TODO',
priority: undefined,
tags: [ 'shopping' ] } ],
meta: {} }
{
type: 'document',
properties: {},
children: [
{
type: 'section',
level: 1,
properties: {},
children: [
{
type: 'headline',
actionable: true,
content: 'remember the milk',
children: [
{
type: 'stars',
level: 1,
position: {
start: { line: 1, column: 1 },
end: { line: 1, column: 2 }
},
parent: [Circular *1]
},
{
type: 'todo',
keyword: 'TODO',
actionable: true,
position: {
start: { line: 1, column: 3 },
end: { line: 1, column: 7 }
},
parent: [Circular *1]
},
{
type: 'text.plain',
value: 'remember the milk',
position: {
start: { line: 1, column: 8 },
end: { line: 1, column: 25 }
},
parent: [Circular *1]
},
{
type: 'tags',
tags: [ 'shopping' ],
position: {
start: { line: 1, column: 29 },
end: { line: 1, column: 39 }
},
parent: [Circular *1]
}
],
level: 1,
position: {
start: { line: 1, column: 1 },
end: { line: 1, column: 39 }
},
keyword: 'TODO',
tags: [ 'shopping' ],
parent: [Circular *2]
}
],
position: { start: { line: 1, column: 1 }, end: { line: 1, column: 39 } },
parent: [Circular *3]
}
],
position: { start: { line: 1, column: 1 }, end: { line: 1, column: 39 } }
}

#+END_SRC

0 comments on commit ce758b5

Please sign in to comment.