Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation

on:
push:
paths:
- "docs/**"
pull_request:
paths:
- "docs/**"
release:
types: [created]
schedule:
-
cron: "0 1 * * 6" # Run at 1am every Saturday

jobs:
tests:
runs-on: ubuntu-latest
name: "Build"
steps:
-
uses: actions/checkout@v2

-
name: Install documentation dependencies
run: docker build -t sylius-docs docs

-
name: Build the documentation
run: docker run --rm sylius-docs
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
-
php: 7.3
env:
- SYLIUS_SUITE="docs packages"
- SYLIUS_SUITE="packages"
- SYMFONY_VERSION="4.4.*"
services:
- docker
- mysql
addons:
apt:
Expand Down
6 changes: 3 additions & 3 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ code=0

sphinx-build -nWT . build || code=$?
# Flags used here
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
# -T Displays the full stack trace if an unhandled exception occurs.
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
# -T Displays the full stack trace if an unhandled exception occurs.

if [[ ${code} != 0 ]]; then
(>&2 echo "Build failed, rerunning to show all the warnings and errors")
Expand Down
7 changes: 0 additions & 7 deletions etc/travis/suites/docs/install.sh

This file was deleted.

15 changes: 0 additions & 15 deletions etc/travis/suites/docs/is_suitable.sh

This file was deleted.

6 changes: 0 additions & 6 deletions etc/travis/suites/docs/script.sh

This file was deleted.