mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-11-28 09:08:44 +02:00
Add make targets for serving docs locally
This commit is contained in:
parent
f262ec84d5
commit
16734dbee8
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@ release
|
||||
.godeps
|
||||
*.exe
|
||||
.env
|
||||
.bundle
|
||||
|
||||
# Go.gitignore
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
|
18
docs/Makefile
Normal file
18
docs/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
.PHONY: ruby
|
||||
ruby:
|
||||
@ if [ ! $$(which ruby) ]; then \
|
||||
echo "Please install ruby version 2.1.0 or higher"; \
|
||||
fi
|
||||
|
||||
.PHONY: bundle
|
||||
bundle: ruby
|
||||
@ if [ ! $$(which bundle) ]; then \
|
||||
echo "Please install bundle: `gem install bundler`"; \
|
||||
fi
|
||||
|
||||
vendor/bundle: bundle
|
||||
bundle install --path vendor/bundle
|
||||
|
||||
.PHONY: serve
|
||||
serve: vendor/bundle
|
||||
bundle exec jekyll serve
|
13
docs/README.md
Normal file
13
docs/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Docs
|
||||
|
||||
This folder contains our Jekyll based docs site which is hosted at
|
||||
https://pusher.github.io/oauth2_proxy.
|
||||
|
||||
When making changes to this docs site, please test your changes locally:
|
||||
|
||||
```bash
|
||||
make serve
|
||||
```
|
||||
|
||||
To run the docs site locally you will need Ruby at version 2.1.0 or
|
||||
higher and `bundle` (`gem install bundler` if you already have Ruby).
|
Loading…
Reference in New Issue
Block a user