forked from ZUGFeRD/mustangproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
483 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
= Demo Documentation Component B | ||
// URLs | ||
:url-project: https://antora.org | ||
:url-docs: https://docs.antora.org | ||
:url-org: https://gitlab.com/antora | ||
:url-group: {url-org}/demo | ||
:url-demo-site: https://antora.gitlab.io/demo/docs-site | ||
:url-site-readme: {url-group}/docs-site/blob/master/README.adoc | ||
:url-opendevise: https://opendevise.com | ||
|
||
Component B is an example of a documentation component. | ||
It is used by the {url-demo-site}[Antora Demo site]. | ||
The playbook and instructions for the Demo site are located in the {url-site-readme}[Demo site playbook project]. | ||
|
||
== Resources | ||
|
||
* {url-project}[Antora Project Site] | ||
* {url-docs}[Antora Docs] | ||
* {url-org}[Antora Repositories] | ||
|
||
== Copyright and License | ||
|
||
Copyright (C) 2017-present by OpenDevise Inc. and the individual contributors to Antora. | ||
|
||
Use of this software is granted under the terms of the https://www.mozilla.org/en-US/MPL/2.0/[Mozilla Public License Version 2.0] (MPL-2.0). | ||
See link:LICENSE[] to find the full license 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,21 @@ | ||
# This file represents "software". | ||
# This file helps show that documentation files can be in the same repository as software. | ||
|
||
rescue => ex | ||
begin | ||
context = %(asciidoctor: FAILED: #{attrs['docfile'] || '<stdin>'}: Failed to load AsciiDoc document) | ||
if ex.respond_to? :exception | ||
# The original message must be explicitely preserved when wrapping a Ruby exception | ||
wrapped_ex = ex.exception %(#{context} - #{ex.message}) | ||
# JRuby automatically sets backtrace, but not MRI | ||
wrapped_ex.set_backtrace ex.backtrace | ||
else | ||
# Likely a Java exception class | ||
wrapped_ex = ex.class.new context, ex | ||
wrapped_ex.stack_trace = ex.stack_trace | ||
end | ||
rescue | ||
wrapped_ex = ex | ||
end | ||
raise wrapped_ex | ||
end |
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 @@ | ||
name: component-b | ||
title: Component B | ||
version: 2.5 | ||
prerelease: -beta.1 | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
- modules/module-one/nav.adoc |
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 @@ | ||
* xref:index.adoc[] |
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,33 @@ | ||
= Welcome to Component B! | ||
:navtitle: Welcome | ||
|
||
This is the automatic start page for version *{page-component-display-version}* of Component B. | ||
|
||
Component B is one of two documentation components in the Antora Demo. | ||
The other docs component, Component A, can be accessed using the component selector menu (aka component drawer) at the bottom of the menu on the left side of the page. | ||
|
||
== Page source | ||
|
||
This page is sourced from the AsciiDoc file named [.path]_index.adoc_ that is located at [.path]_demo-component-b/docs/modules/ROOT/pages_. | ||
|
||
=== Why is this the home page of Component B? | ||
|
||
This page is automatically used as the start page of Component B because it is stored in the ROOT module and named [.path]_index.adoc_. | ||
|
||
=== Why is this the home page of the Antora Demo site? | ||
|
||
This page is used as the home page for the Antora Demo because it is assigned as the site `start_page` in the Demo site's playbook file [.path]_site.yml_. | ||
|
||
== Cross reference syntax to target this page | ||
|
||
To create a cross reference *to this page from another page in the ROOT module of Component B*, the xref syntax would be `\xref:index.adoc[]`. | ||
|
||
To create a cross reference *to this page from a page in Module One of Component B*, the xref syntax would be `\xref:ROOT:index.adoc[]`. | ||
|
||
=== Always target the latest version of this page | ||
|
||
To create a cross reference *to the latest version of this page from a page in Component A*, the xref syntax would be `\xref:component-b::index.adoc[]`. | ||
|
||
=== Target a specific version of this page | ||
|
||
To create a cross reference *to version 1.0 of this page from a page in Component A*, the xref syntax would be `\xref:1.0@component-b::index.adoc[]`. |
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 @@ | ||
* xref:overview.adoc[] |
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,21 @@ | ||
= Module One Overview | ||
|
||
This is version *{page-component-display-version}* of Module One in Component B. | ||
|
||
== Page source | ||
|
||
This page is sourced from [.path]_demo-component-b/docs/modules/module-one/pages/overview.adoc_. | ||
|
||
== Cross reference syntax to target this page | ||
|
||
To create a cross reference *to this page from another page in Module One*, the xref syntax would be `\xref:overview.adoc[]`. | ||
|
||
To create a cross reference *to this page from a page in the ROOT module of Component B*, the xref syntax would be `\xref:module-one:overview.adoc[]`. | ||
|
||
=== Always target the latest version of this page | ||
|
||
To create a cross reference *to the latest version of this page from a page in Component A*, the xref syntax would be `\xref:component-b:module-one:overview.adoc[]`. | ||
|
||
=== Target a specific version of this page | ||
|
||
To create a cross reference *to version 1.0 of this page from a page in Component A*, the xref syntax would be `\xref:1.0@component-b:module-one:overview.adoc[]`. |