Skip to content

Commit

Permalink
Update middleman config
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <[email protected]>
  • Loading branch information
pierre committed Jul 24, 2023
1 parent ee4c1d3 commit 7bd7b13
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,32 @@

Kill Bill API documentation.

## Setup
## Edit and Syntax

The documentation is in the `source/includes` directory.

Markdown syntax: https://github.com/slatedocs/slate/wiki/Markdown-Syntax

The pages are built using middleman:
## Deployment

The site is built using [Middleman](https://github.com/middleman/middleman):

```
bundle install
bundle exec middleman server
middleman build
```

See also https://github.com/slatedocs/slate and https://github.com/middleman/middleman.
See also https://github.com/slatedocs/slate.

## Edit and Syntax
Notes:

The documentation is in the `source/includes` directory.

Markdown syntax: https://github.com/slatedocs/slate/wiki/Markdown-Syntax
* The generated static pages under `build` are deployed by Cloudflare
* The built pages are also pushed to the `gh-pages` branch for debugging (served by GitHub pages at https://killbill.github.io/slate/)
* Minification of assets is handled by Cloudflare (check-in the unminified version)

## Publishing
## Development

In order to publish the doc on github pages, simply run
To run the site locally:

```
./deploy.sh
middleman server
```
17 changes: 7 additions & 10 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,13 @@

# Build Configuration
configure :build do
# We do want to hash woff and woff2 as there's a bug where woff2 will use
# woff asset hash which breaks things. Trying to use a combination of ignore and
# rewrite_ignore does not work as it conflicts weirdly with relative_assets. Disabling
# the .woff2 extension only does not work as .woff will still activate it so have to
# have both. See https://github.com/slatedocs/slate/issues/1171 for more details.
activate :asset_hash, :exts => app.config[:asset_extensions] - %w[.woff .woff2]
# If you're having trouble with Middleman hanging, commenting
# out the following two lines has been known to help
activate :minify_css
activate :minify_javascript
# Could cause issues where cached HTML points to stale files not deployed anymore
# activate :asset_hash, :exts => app.config[:asset_extensions] - %w[.woff .woff2]

# Done by Cloudflare
# activate :minify_css
# activate :minify_javascript

# activate :gzip
end

Expand Down

0 comments on commit 7bd7b13

Please sign in to comment.