Template files are located in ./source/documentation
. All pages are written in Markdown.
To add new pages simply copy and paste one of the existing pages, it will automatically appear in the menu.
example-page.html.md.erb
provides examples and best practices styles.
Requirements:
To live preview:
./batect preview
The local URL and port where the files can be previewed will be output, this is normally http://localhost:4567.
NB The first time this is run it builds the Docker image and installs dependencies so may take 5 mins. Subsequent runs will be much quicker.
Requirements:
- [Ruby Version Manager][rbenv]
- [Node Version Manager][nodenv]
To live preview:
bundle install
bundle exec middleman serve
The local URL and port where the files can be previewed will be output, this is normally http://localhost:4567.
Requirements:
- Scala/sbt
./batect build
sbt run
The local URL and port where the files can be previewed will be output, this is normally http://localhost:9000.
Create a build job like:
new SbtMicroserviceJobBuilder(TEAM, 'service-guide-skeleton')
.withTests("test")
.withNodeJs(version = '16.11.0')
.build(this as DslFactory)
NB the version of Ruby is automatically picked up from .ruby-version
. But the Node version isn't! Make sure that the
version you specify on the build job is the same as what is in .node-version
.
This code is open source software licensed under the Apache 2.0 License.