The getting-started.adoc can now be rendered on it's own (as you can see by the awestruct-layout attribute), or you could remove that attribute from the docs/sections/getting-started.adoc and create a dedicated page file named getting-started.adoc at the root of the site that includes the docs/sections/getting-started.adoc content.
// this becomes a page in Awestruct
.getting-started-page.adoc
[source,asciidoc]
--
:awestruct-layout: my-layout
include::docs/sections/getting-started.adoc[]
--
You'll have to play around with the paths to make sure the parent documents can find the include files. You'll also need to adjust the leveloffset according to how you decide to store it. The leveloffset allows you to shift all the heading levels when you want to embed the content or use it as top-level. (In the future, leveloffset will be an attribute on the include directive).
Option B::
The other option is to leverage the feature in Asciidoctor to include file fragments. The most robust approach is to use tags in the content that you can extract. First, we tag the content in docs/chapter1.adoc.
.docs/chapter1.adoc
[source,asciidoc]
--
= Chapter 1: Name of Chapter
// tag::getting-started[]
== Gettting Started
Information on getting started.
Perhaps it's more than one paragraph.
// end::getting-started[]
== Other Content
More content.
--
Then you create a page at the root of the site that includes this content and gives it a layout.
.getting-started.adoc[]
[source,asciidoc]
--
:awestruct-layout: my-layout
include::docs/chapter1.adoc[tags=getting-started]
--
(In the future, we'd like to be able to extract structured content for AsciiDoc files, but we aren't there yet).
Admittedly, it takes a few steps to get setup, but once you have it going, it should feel quite organized.
I recommend puts the docs in a separate git repository, then including it in the website repository as a submodule. Thus, you're website repo would be structured like:
.awestruct_ignore
_config/
site.yml
_ext/
pipeline.rb
_layouts/
Another solution is to name the submodule folder _docs. Any directory that is prefixed by an underscore is ignored by Awestruct when looking for pages.
I hope that helps! If you have follow-up questions, feel free to ask.