Skip to content

Commit d2d6d70

Browse files
authored
Merge pull request #362 from matbcvo/implement-gh-codespaces
Add support for GitHub Codespaces
2 parents 09f1cae + e16e2e6 commit d2d6d70

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"features": {
3+
"ghcr.io/devcontainers/features/python:1": {
4+
"version": "3.11",
5+
"installTools": true
6+
}
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"ms-python.python",
12+
"swyddfa.esbonio",
13+
"lextudio.restructuredtext",
14+
"eamodio.gitlens",
15+
"trond-snekvik.simple-rst"
16+
]
17+
}
18+
},
19+
"postCreateCommand": "chmod +x .devcontainer/setup-project.sh && .devcontainer/setup-project.sh"
20+
}

.devcontainer/setup-project.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
VALE_VERSION=3.7.1
5+
6+
# Install required packages
7+
pip install -r docs/requirements.txt
8+
9+
# Required for Vale
10+
pip install rst2html rstcheck
11+
12+
# Install Vale
13+
mkdir -p /tmp/vale
14+
curl -sSL https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz | tar -xz -C /tmp/vale
15+
sudo install -o root -g root -m 0755 /tmp/vale/vale /usr/local/bin/vale
16+
rm -rf /tmp/vale

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
[![Documentation Status][RTD badge URL]][RTD URL]
2-
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)
4-
<!-- ALL-CONTRIBUTORS-BADGE:END -->
5-
6-
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/mautic/user-documentation)
1+
[![Documentation Status][RTD badge URL]][RTD URL] [![All Contributors](https://img.shields.io/github/all-contributors/mautic/user-documentation?color=ee8449&style=flat-square)](#contributors)
72

83
# Mautic user documentation (new)
94

0 commit comments

Comments
 (0)