-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #499 from killbill/new-branding
New branding
- Loading branch information
Showing
140 changed files
with
3,872 additions
and
3,908 deletions.
There are no files selected for viewing
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,19 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2.2 | ||
bundler-cache: true | ||
- name: Build pages | ||
run: | | ||
bash make.sh |
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'asciidoctor', '~> 2.0.0' | ||
gem 'concurrent-ruby', '~> 1.1.0' | ||
gem 'pygments.rb', '~> 2.0.0' | ||
gem 'slim', '~> 4.0.0' | ||
gem 'tilt', '~> 2.0.0' | ||
gem 'asciidoctor', '~> 2.0' | ||
gem 'concurrent-ruby', '~> 1.2' | ||
gem 'pygments.rb', '~> 2.0' | ||
gem 'slim', '~> 5.0' | ||
gem 'tilt', '~> 2.0' |
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 |
---|---|---|
@@ -1,18 +1,47 @@ | ||
killbill-docs | ||
============= | ||
# Docs | ||
|
||
Kill Bill documentation (user guides and tutorials). | ||
|
||
To generate the documentation locally, run ```make.sh```. Generated html files are in the *build* directory (only selfcontained HTML files are generated today). | ||
The site is built using [Asciidoctor](http://asciidoctor.org/docs/). | ||
|
||
Pages are automatically built and pushed to https://docs.killbill.io/ by GitHub Actions. | ||
## Edit and Syntax | ||
|
||
Setup | ||
----- | ||
The documentation is in the `userguide` directory. | ||
|
||
AsciiDoc syntax: https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/ | ||
|
||
## Development | ||
|
||
To generate the documentation locally: | ||
|
||
``` | ||
make.sh | ||
``` | ||
|
||
Generated html files are in the `build` directory. | ||
|
||
To run the site locally: | ||
|
||
``` | ||
ruby server.rb | ||
``` | ||
|
||
Prerequisites: | ||
|
||
* Make sure to work off branch `v3` | ||
* Install Ruby (use [RVM](https://rvm.io/) or [RubyInstaller](https://rubyinstaller.org/)) | ||
* Run `bundle install` | ||
* Verify documentation can be built by running the `make.sh` script | ||
|
||
Documentation on AsciiDoc can be found [here](http://asciidoctor.org/docs/). A quick reference is available [here](http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/). | ||
## Deployment | ||
|
||
To deploy the docs: | ||
|
||
``` | ||
make.sh | ||
update_gh-pages.sh | ||
``` | ||
|
||
Notes: | ||
|
||
* The generated static pages under `build/selfcontained` are pushed to the `gh-pages` branch (not served by GitHub pages) | ||
* The `gh-pages` branch is then deployed by Cloudflare (https://docs.killbill.io/) | ||
* Minification of assets is handled by Cloudflare (check-in the unminified version) |
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Check if Gemfile exists (no need to build on gh-pages) | ||
if [ -f Gemfile ] | ||
then | ||
./make.sh | ||
cp -fr build/selfcontained/* build/ | ||
mv build/selfcontained build/latest | ||
else | ||
rm -f .gitignore latest.txt *.sh | ||
|
||
ALL_BUILT_FILES_TMP_DIR=`mktemp -d "${TMPDIR:-/tmp}"/foo.XXXX` | ||
mv * $ALL_BUILT_FILES_TMP_DIR/ | ||
|
||
mkdir -p build/latest | ||
mv $ALL_BUILT_FILES_TMP_DIR/* build/latest/ | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.