Skip to content

Commit 2ab881a

Browse files
authored
Merge pull request #129 from brianjo/main
Fixes base URL to make the site work on gh-pages
2 parents c420c50 + 6f827f2 commit 2ab881a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/main-docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on: [push]
2+
3+
jobs:
4+
build_docs_job:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: [3.6]
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Dependencies
13+
run: |
14+
sudo apt-get install -y yarn
15+
id: build
16+
- name: Build the Website
17+
run: |
18+
cd docs
19+
yarn
20+
npm run build
21+
- name: Deploy
22+
uses: JamesIves/github-pages-deploy-action@releases/v3
23+
with:
24+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
BRANCH: gh-pages # The branch the action should deploy to.
26+
FOLDER: docs/build # The folder the action should deploy.

docs/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
title: 'Mapillary Python SDK',
1313
tagline: 'A Python 3 library built on the Mapillary API v4 to facilitate retrieving and working with Mapillary data',
1414
url: 'https://mapillary.github.io',
15-
baseUrl: '/mapillary-python-sdk/docs',
15+
baseUrl: '/mapillary-python-sdk/',
1616
onBrokenLinks: 'warn',
1717
onBrokenMarkdownLinks: 'warn',
1818
favicon: 'img/favicon.ico',

0 commit comments

Comments
 (0)