Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
feat(article): add ignore asciidoc in _includes directory (close #74)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsuji_no_shippo committed Dec 24, 2019
1 parent 53bf786 commit d58f566
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 5 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
:!author-email:
:author: {author-name}
:!email: {author-email}
:revnumber: v1.24.0
:revdate: 2019-12-19T14:59:18+0900
:revremark: Add log that add link to demo site in README
:revnumber: v1.25.0
:revdate: 2019-12-24T22:34:36+0900
:revremark: Add log that add ignore asciidoc in `_includes` directory
:doctype: article
:description: gatsby-simple-blog-with-asciidoctor Change Log
:title:
Expand Down Expand Up @@ -41,6 +41,15 @@ ifndef::env-github[:icons: font]
:repository-url: {github-url}/hitsuji-no-shippo/gatsby-simple-blog-with-asciidoctor
:issues-url: {repository-url}/issues

== 0.3.0 (2019-12-24)

== Features

=== Add

* Ignore asciidoc in `_includes` directory. (close link:{issues-url}/74[#74])


== 0.2.0 (2019-12-19)

=== Breaking Changes
Expand Down
8 changes: 6 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
:!author-email:
:author: {author-name}
:!email: {author-email}
:revnumber: v1.13.2
:revnumber: v1.14.0
:revdate: 2019-12-20T13:55:15+0900
:revremark: add important admonition
:revremark: add ignore asciidoc in `_includes` directory
:doctype: article
:description: gatsby-simple-blog-with-asciidoctor README
:title:
Expand Down Expand Up @@ -351,6 +351,10 @@ Use disqus.com to enable comment.
Enable eslint for better coding experience.
* module resolver +
Enable babel-module-resolver to prevent relative path hell
* inogre +
The `ignore` option in link:[https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-filesystem
`gatsby-source-filesystem`^] is used so that the node of asciidoc in
`_includes` directory is not generated.

== LICENSE

Expand Down
22 changes: 22 additions & 0 deletions content/blog/include/_includes/first.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
:revdate: 2019-12-21T21:27:04+0900

// tag::body[]
= First

First

.Attributes
[cols="m,d", cols="headers, autowidth"]
|================================================
|Attributes |Values
|\{doctitle} |{doctitle}
|================================================

.Include command
[literal]
....
\include::./second/index.adoc[tag=body, leveloffset=+1]
....

include::./second/index.adoc[tag=body, leveloffset=+1]
// end::body[]
22 changes: 22 additions & 0 deletions content/blog/include/_includes/second/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
:revdate: 2019-12-21T21:30:24+0900

// tag::body[]
= Second index

Second index

.Attributes
[cols="m,d", cols="headers, autowidth"]
|================================================
|Attributes |Values
|\{doctitle} |{doctitle}
|================================================

.Include command
[literal]
....
\include::./second.adoc[tag=body, leveloffset=+1]
....

include::./second.adoc[tag=body, leveloffset=+1]
// end::body[]
14 changes: 14 additions & 0 deletions content/blog/include/_includes/second/second.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:revdate: 2019-12-21T21:26:29+0900

// tag::body[]
= Second

Second

.Attributes
[cols="m,d", cols="headers, autowidth"]
|================================================
|Attributes |Values
|\{doctitle} |{doctitle}
|================================================
// end::body[]
20 changes: 20 additions & 0 deletions content/blog/include/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
= Include
:revdate: 2019-12-21T21:26:58+0900
:page-tags: [ascidoc, include]

Include

.Attributes
[cols="m,d", cols="headers, autowidth"]
|================================================
|Attributes |Values
|\{doctitle} |{doctitle}
|================================================

.Include command
[listing]
....
\include::content/blog/include/_includes/first.adoc[tag=body, leveloffset=+1]
....

include::content/blog/include/_includes/first.adoc[tag=body, leveloffset=+1]
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
options: {
path: `${__dirname}/content/blog`,
name: 'blog',
ignore: ['**\/_includes'],
},
},
{
Expand Down

0 comments on commit d58f566

Please sign in to comment.