Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 3b82bd4

Browse files
author
pascal
committed
Get travis to autogenerate documentation
1 parent fddb954 commit 3b82bd4

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.travis.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: c
22
os: linux
33
dist: xenial
4+
services:
5+
- docker
46
jobs:
57
include:
68
- name: Lint
@@ -71,4 +73,25 @@ jobs:
7173
cleanup: false
7274
on:
7375
tags: true
74-
repo: codeenigma/ce-dev
76+
repo: codeenigma/ce-dev
77+
- name: Update documentation.
78+
if: branch = '1.x.'
79+
addons:
80+
apt:
81+
packages:
82+
- p7zip-full
83+
- libnss3-tools
84+
- wget
85+
install:
86+
- wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-linux-amd64 -O /tmp/mkcert
87+
- sudo mv /tmp/mkcert /usr/local/bin
88+
- sudo chmod +x /usr/local/bin/mkcert
89+
- curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux
90+
script:
91+
- cd
92+
- git clone https://github.com/codeenigma/wikis2pages.git
93+
- cd wiki2pages
94+
- /bin/sh init.sh https://$GITHUB_TOKEN@github.com/codeenigma/wikis2pages-demo.git
95+
- /bin/sh set-current.sh ce-dev-travis
96+
- docker exec --user ce-dev --workdir /home/ce-dev/deploy/live.local wikis2pages-hugo hugo
97+
- /bin/sh .travis-push.sh

.wikis2pages.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ce-dev:
1+
ce-dev-local:
22
src: https://github.com/codeenigma/ce-dev.git
33
src_branch: 1.x
44
src_subdir: 'docs'
@@ -7,4 +7,14 @@ ce-dev:
77
dest_subdir: 1.x
88
title: ce-dev
99
type: doc
10+
base_url: https://codeenigma.github.io/ce-dev-docs/1.x
11+
ce-dev-travis:
12+
src: https://$GITHUB_TOKEN@github.com/codeenigma/ce-dev.git
13+
src_branch: 1.x
14+
src_subdir: 'docs'
15+
dest: https://$GITHUB_TOKEN@github.com/codeenigma/ce-dev-docs.git
16+
dest_branch: master
17+
dest_subdir: 1.x
18+
title: ce-dev
19+
type: doc
1020
base_url: https://codeenigma.github.io/ce-dev-docs/1.x

0 commit comments

Comments
 (0)