Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Antora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Antora
Antora
Commits
32ba9496
Commit
32ba9496
authored
6 years ago
by
Dan Allen
Browse files
Options
Downloads
Plain Diff
merge
!242
resolves
#194
document that .nojekyll is required to publish site to GitHub Pages
parents
29052aef
139cf680
No related branches found
No related tags found
Loading
Pipeline
#25544368
passed
6 years ago
Stage: init
Stage: verify
Stage: external
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.adoc
+4
-0
4 additions, 0 deletions
CHANGELOG.adoc
docs/modules/ROOT/nav.adoc
+1
-0
1 addition, 0 deletions
docs/modules/ROOT/nav.adoc
docs/modules/ROOT/pages/run-antora.adoc
+22
-0
22 additions, 0 deletions
docs/modules/ROOT/pages/run-antora.adoc
with
27 additions
and
0 deletions
CHANGELOG.adoc
+
4
−
0
View file @
32ba9496
...
@@ -24,6 +24,10 @@ This project utilizes semantic versioning.
...
@@ -24,6 +24,10 @@ This project utilizes semantic versioning.
* *content-aggregator*: Fetch all tags when the runtime pull option is enabled (#271)
* *content-aggregator*: Fetch all tags when the runtime pull option is enabled (#271)
* *navigation-builder*: Allow navigation sublists to be enclosed in open blocks (#265)
* *navigation-builder*: Allow navigation sublists to be enclosed in open blocks (#265)
=== Documented
* Document that a .nojekyll file is required to publish an Antora-generated site to GitHub Pages (#194)
== 1.0.1 (2018-05-06)
== 1.0.1 (2018-05-06)
=== Improved
=== Improved
...
...
This diff is collapsed.
Click to expand it.
docs/modules/ROOT/nav.adoc
+
1
−
0
View file @
32ba9496
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
* xref:run-antora.adoc[Run Antora]
* xref:run-antora.adoc[Run Antora]
** xref:run-antora.adoc#cache[About the Cache]
** xref:run-antora.adoc#cache[About the Cache]
** xref:run-antora.adoc#local-site-preview[Local Preview]
** xref:run-antora.adoc#local-site-preview[Local Preview]
** xref:run-antora.adoc#publish-to-github-pages[Publish to GitHub Pages]
** xref:antora-container.adoc[Run Antora in a Container]
** xref:antora-container.adoc[Run Antora in a Container]
** xref:cli:index.adoc[CLI Reference]
** xref:cli:index.adoc[CLI Reference]
...
...
This diff is collapsed.
Click to expand it.
docs/modules/ROOT/pages/run-antora.adoc
+
22
−
0
View file @
32ba9496
...
@@ -247,3 +247,25 @@ These subsequent runs complete much faster because only the changes to the repos
...
@@ -247,3 +247,25 @@ These subsequent runs complete much faster because only the changes to the repos
The repositories are cached under the [.path]_build/sources/_ directory.
The repositories are cached under the [.path]_build/sources/_ directory.
If you remove the [.path]_build/_ directory, the repositories will have to be downloaded again from scratch.
If you remove the [.path]_build/_ directory, the repositories will have to be downloaded again from scratch.
////
////
== Publish to GitHub Pages
Antora is designed to create sites that run anywhere, whether it be a static web host or the local filesystem.
However, some hosts offer "`features`" that interfere with Antora's output.
GitHub Pages is one of those hosts.
By default, GitHub Pages runs all files through another static site generator named Jekyll.
Since Antora already produces a ready-made site, there's no need for this.
It's also problematic since Jekyll has the nasty side effect of removing all files that begin with an underscore (`+_+`).
Antora puts UI files in a directory named `+_+`, which Jekyll subsequently erases.
As a result, no UI.
Antora also puts images in a folder named `_images` inside each module, so no images either.
Fortunately, there's a way to disable this "`feature`" of GitHub Pages.
The solution is to add a [.path]_.nojekyll_ file to the root of the published site.
Simply create an empty [.path]_.nojekyll_ file in the output directory before committing the files to GitHub Pages.
$ touch build/site/.nojekyll
The presence of the [.path]_.nojekyll_ file at the root of the `gh-pages` branch tells GitHub Pages not to run the published files through Jekyll.
The result is that your Antora-made site will work as expected (and will be available sooner).
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment