Skip to content

Commit 5b31f5d

Browse files
Remove old framework files and replace with Docker
1 parent 7602d65 commit 5b31f5d

11 files changed

+20
-327
lines changed

Gemfile

-12
This file was deleted.

Gemfile.lock

-138
This file was deleted.

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@
33
Repository of documentation REST API WooCommerce.
44

55
This project is based on [Slate](https://github.com/tripit/slate).
6+
7+
## Usage ##
8+
9+
To generate docs run:
10+
11+
```bash
12+
./build.sh
13+
```
14+
15+
To deploy generated docs:
16+
17+
```bash
18+
./deploy.sh
19+
```

Rakefile

-11
This file was deleted.

build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -o errexit #abort if any command fails
3+
4+
rm -rf build
5+
docker run --rm --name slate -v $(pwd)/build:/srv/slate/build -v $(pwd)/source:/srv/slate/source slatedocs/slate

config.rb

-58
This file was deleted.

deploy.sh

+1-15
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,8 @@ Options:
1515
deploy branch.
1616
-n, --no-hash Don't append the source commit's hash to the deploy
1717
commit's message.
18-
--source-only Only build but not push
19-
--push-only Only push but not build
2018
"
2119

22-
23-
run_build() {
24-
bundle exec middleman build --clean
25-
}
26-
2720
parse_args() {
2821
# Set args from a local environment file.
2922
if [ -e ".env" ]; then
@@ -205,11 +198,4 @@ sanitize() {
205198
"$@" 2> >(filter 1>&2) | filter
206199
}
207200

208-
if [[ $1 = --source-only ]]; then
209-
run_build
210-
elif [[ $1 = --push-only ]]; then
211-
main "$@"
212-
else
213-
run_build
214-
main "$@"
215-
fi
201+
main "$@"

lib/multilang.rb

-16
This file was deleted.

lib/nesting_unique_head.rb

-22
This file was deleted.

lib/toc_data.rb

-31
This file was deleted.

lib/unique_head.rb

-24
This file was deleted.

0 commit comments

Comments
 (0)