-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add djot support, make a test_djot_book folder.
- Loading branch information
1 parent
9096012
commit 28a905a
Showing
47 changed files
with
1,708 additions
and
10 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[book] | ||
title = "mdBook test book" | ||
description = "A demo book to test and validate changes" | ||
authors = ["YJDoc2"] | ||
language = "en" | ||
|
||
[rust] | ||
edition = "2018" | ||
|
||
[output.html] | ||
mathjax-support = true | ||
|
||
[output.html.playground] | ||
editable = true | ||
line-numbers = true | ||
|
||
[output.html.search] | ||
limit-results = 20 | ||
use-boolean-and = true | ||
boost-title = 2 | ||
boost-hierarchy = 2 | ||
boost-paragraph = 1 | ||
expand = true | ||
heading-split-level = 2 | ||
|
||
[output.html.redirect] | ||
"/format/config.html" = "configuration/index.html" |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Demo Book | ||
|
||
This is a simple demo book, which is intended to be used for verifying and validating style changes in mdBook. | ||
This contains dummy examples of various djot elements and code languages, so that one can check changes made in mdBook styles. | ||
|
||
This rough outline is : | ||
|
||
: individual | ||
|
||
contains basic djot elements such as headings, paragraphs, links etc. | ||
|
||
: languages | ||
|
||
contains a `hello world` in each of supported language to see changes in syntax highlighting | ||
|
||
: rust | ||
|
||
contains language examples specific to rust, such as play pen, runnable examples etc. | ||
|
||
: djot specific inline | ||
|
||
contains djot specific items that are inline. | ||
|
||
This is more for checking and fixing style, rather than verifying that correct code is generated for given djot, that is better handled in tests. |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Summary | ||
|
||
[Prefix Chapter](prefix.dj) | ||
|
||
--- | ||
|
||
- [Introduction](README.dj) | ||
- [Draft Chapter]() | ||
|
||
# Actual Djot Tag Examples | ||
|
||
- [Djot Individual tags](individual/README.dj) | ||
- [Heading](individual/heading.dj) | ||
- [Paragraphs](individual/paragraph.dj) | ||
- [Line Break](individual/linebreak.dj) | ||
- [Emphasis](individual/emphasis.dj) | ||
- [Blockquote](individual/blockquote.dj) | ||
- [List](individual/list.dj) | ||
- [Code](individual/code.dj) | ||
- [Image](individual/image.dj) | ||
- [Links and Horizontal Rule](individual/link_hr.dj) | ||
- [Tables](individual/table.dj) | ||
- [Tasks](individual/task.dj) | ||
- [Strikethrough](individual/strikethrough.dj) | ||
- [MathJax](individual/mathjax.dj) | ||
- [Mixed](individual/mixed.dj) | ||
- [Thematic Break](individual/thematic_break.dj) | ||
- [Languages](languages/README.dj) | ||
- [Syntax Highlight](languages/highlight.dj) | ||
- [Rust Specific](rust/README.dj) | ||
- [Rust Codeblocks](rust/rust_codeblock.dj) | ||
- [Djot Specific Inline](djot_specific_inline/README.dj) | ||
- [Comment](djot_specific_inline/comment.dj) | ||
- [Footnote](djot_specific_inline/footnote.dj) | ||
- [Highlight](djot_specific_inline/highlight.dj) | ||
- [Inline Attributes](djot_specific_inline/inline_attributes.dj) | ||
- [Insert](djot_specific_inline/insert.dj) | ||
- [Raw Inline](djot_specific_inline/raw_inline.dj) | ||
- [Span](djot_specific_inline/span.dj) | ||
- [Subscript](djot_specific_inline/subscript.dj) | ||
- [Superscript](djot_specific_inline/superscript.dj) | ||
- [Symbols](djot_specific_inline/symbols.dj) | ||
- [Djot Specific Block](djot_specific_block/README.dj) | ||
- [Div](djot_specific_block/div.dj) | ||
- [Raw Block](djot_specific_block/raw_block.dj) | ||
- [Footnote](djot_specific_block/footnote.dj) | ||
|
||
--- | ||
|
||
[Suffix Chapter](suffix.dj) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# Djot Specific Block |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Div | ||
|
||
::: warning | ||
Here is a paragraph. | ||
|
||
And here is another. | ||
::: |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Footnote | ||
|
||
Here's the reference.[^one] | ||
|
||
[^one]: This is a footnote. |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Raw Block | ||
|
||
``` =html | ||
<p> a html paragraph</p> | ||
``` | ||
|
||
``` =plaintext | ||
a plaintext paragraph | ||
``` |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# Djot Specific Inline |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Comment | ||
|
||
Here is a {% comment %}. |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Footnote | ||
|
||
Here is a reference.[^ref] | ||
|
||
[^ref]: Here is a footnote. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Highlight | ||
|
||
This is {=highlighted text=}. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Inline Attributes | ||
|
||
Inline attributes{.class #id key="value"} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Insert | ||
|
||
{+insert+} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Raw Inline | ||
|
||
This is `<?php echo 'Raw Inline' ?>`{=html}. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Span | ||
|
||
This is a [span]{.wonderful}. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Subscript | ||
|
||
sub~script~ |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Superscript | ||
|
||
super^script^ |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Symbols | ||
|
||
Support for symbols is optional :+1: :smiley:! |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Djot Individual tags | ||
|
||
This contains following tags: | ||
|
||
- Headings | ||
- Paragraphs | ||
- Line breaks | ||
- Emphasis | ||
- Blockquotes | ||
- Lists | ||
- Code blocks | ||
- Images | ||
- Links and Horizontal rules | ||
- Tables | ||
- Task Lists (not supported) | ||
- Strikethrough | ||
- Mixed |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Blockquote | ||
|
||
> This is a quoted sentence. | ||
|
||
> This is a quoted paragraph | ||
> | ||
> separated lines | ||
> here | ||
|
||
> Nested | ||
> | ||
> > Quoted | ||
> > Paragraph | ||
|
||
> ### And now, | ||
> | ||
> *Let us _introduce_* | ||
> All kinds of | ||
> | ||
> - tags | ||
> - etc | ||
> - stuff | ||
> | ||
> 1. In | ||
> 2. The | ||
> 3. blockquote | ||
> | ||
> > cause we can | ||
> > | ||
> > > Cause we can |
Oops, something went wrong.