Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge documentation changes into release branch #1468

Merged
merged 44 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
990f2cb
update VM size note
edwardchalstrey1 Feb 28, 2023
ad51af8
update note
edwardchalstrey1 Feb 28, 2023
b8e1808
changenote to tip and make bold
edwardchalstrey1 Feb 28, 2023
76723b6
remove word
edwardchalstrey1 Feb 28, 2023
82d1f0d
Add readthedocs configuration
JimMadge Apr 27, 2023
57e6f10
Move sphinx configuration and doc requirements
JimMadge Apr 27, 2023
077db5d
Move static and template directories
JimMadge Apr 27, 2023
1e4855e
Remove rinoh
JimMadge Apr 27, 2023
b3f1aa2
Remove build directory
JimMadge Apr 27, 2023
111389a
Remove pdf builds from Makefile
JimMadge Apr 27, 2023
cc86c41
Disable readthedocs pdf builds
JimMadge Apr 27, 2023
12e6cf5
Move scriberia figure
JimMadge Apr 27, 2023
c8369d9
Move docs source to source dir
JimMadge Apr 27, 2023
b08992d
Clean Sphinx configuration
JimMadge Apr 27, 2023
4ccb3f0
Update requirements
JimMadge Apr 27, 2023
b0b8334
Restore sidebar
JimMadge Apr 27, 2023
5a6aad1
Use default primary sidebar
JimMadge Apr 27, 2023
772d89d
Remove unused import
JimMadge Apr 27, 2023
ca53abe
Improve docs reproducibility with pip-compile
JimMadge Apr 27, 2023
1394d7d
Fix indentation
JimMadge Apr 27, 2023
e78560a
Remove docs deployment workflow
JimMadge Apr 27, 2023
af93975
Add documentation workflow
JimMadge Apr 28, 2023
ee66f2f
Add lychee configuration file
JimMadge Apr 28, 2023
be64393
Update PyPI and CRAN allow lists
JimMadge May 1, 2023
d215d82
Merge pull request #1454 from alan-turing-institute/package-allowlist…
JimMadge May 2, 2023
32f8943
Add ipaddressguide.com to lychee exclude list
JimMadge May 2, 2023
f5e61fe
Exclude template file from link checking
JimMadge May 2, 2023
9964d3b
Add lychee cache files to gitignore
JimMadge May 2, 2023
6db5cfb
Add opensource.org to lychee exclude list
JimMadge May 2, 2023
6558096
Remove unnecessary period
JimMadge May 3, 2023
c2c1d5e
Update PyPI and CRAN allow lists
JimMadge May 7, 2023
f2c669e
Merge pull request #1456 from alan-turing-institute/package-allowlist…
JimMadge May 9, 2023
c36f984
Update CITATION.cff
JimMadge May 11, 2023
8b81d1a
Update documentation links in README
JimMadge May 11, 2023
75149a4
Update documentation link in contribution guide
JimMadge May 11, 2023
029b6ab
Correct reference label
JimMadge May 12, 2023
3ee1b84
Add data preparation advice
JimMadge May 12, 2023
06f7d8d
Fix linting errors
JimMadge May 12, 2023
dbc4a48
Update SRD package versions
JimMadge May 15, 2023
fdd0c00
Merge pull request #1460 from alan-turing-institute/srd-package-versions
JimMadge May 15, 2023
62a59c8
Remove unused javascript file
JimMadge May 15, 2023
ebdac52
Merge pull request #1408 from edwardchalstrey1/vm-docs-note
JimMadge May 15, 2023
208e223
Merge pull request #1459 from alan-turing-institute/data_integrity
JimMadge May 15, 2023
20b8e1f
Merge remote-tracking branch 'origin/develop' into readthedocs
JimMadge May 15, 2023
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
77 changes: 0 additions & 77 deletions .github/workflows/build_docs.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Documentation

# Run workflow on pushes to matching branches
on: # yamllint disable-line rule:truthy
push:
branches: [develop]
pull_request:
branches: [develop]

jobs:
build:
name: Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs/
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Sphinx build
run: |
make html

check_links:
name: Check links
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: ./docs/
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Sphinx build
run: |
make html
- name: Link Checker
uses: lycheeverse/lychee-action@v1.7.0
with:
args: --config='./.lychee.toml' --verbose --no-progress './docs/build/html/**/*.html'
fail: true # fail on broken links
26 changes: 0 additions & 26 deletions .github/workflows/lint_code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,6 @@ on: # yamllint disable-line rule:truthy
branches: [develop]

jobs:
lint_html:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get tags
run: git fetch --tags origin
- name: Install requirements
shell: bash
run: |
sudo gem install html-proofer -v 4.4.1
pip install -r docs/build/requirements.txt
- name: Generate HTML documention
shell: bash
run: |
DISABLE_VERSION_LINKS=1 make -C docs html
- name: Lint HTML
shell: bash
run: |
htmlproofer docs/_output \
--allow-missing-href=true \
--enforce-https=true \
--ignore-files "/_static/" \
--ignore-status-codes "502,503" \
--ignore-urls "/github.com\/alan-turing-institute\/data-classification-app/,/www.turing.ac.uk/,/data-safe-haven\/edit/"

lint_json:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ docs/_output

# Files produced during testing
.mustache_config.json
expanded.yaml
expanded.yaml

# Lychee cache
.lycheecache
123 changes: 123 additions & 0 deletions .lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
############################# Display #############################

# Verbose program output
# Accepts log level: "error", "warn", "info", "debug", "trace"
verbose = "info"

# Don't show interactive progress bar while checking links.
no_progress = false

# Path to summary output file.
# output = ".config.dummy.report.md"

############################# Cache ###############################

# Enable link caching. This can be helpful to avoid checking the same links on
# multiple runs.
cache = true

# Discard all cached requests older than this duration.
max_cache_age = "1d"

############################# Runtime #############################

# Number of threads to utilize.
# Defaults to number of cores available to the system if omitted.
threads = 2

# Maximum number of allowed redirects.
max_redirects = 10

# Maximum number of allowed retries before a link is declared dead.
max_retries = 2

# Maximum number of concurrent link checks.
max_concurrency = 14

############################# Requests ############################

# User agent to send with each request.
user_agent = "curl/7.83. 1"

# Website timeout from connect to response finished.
timeout = 20

# Minimum wait time in seconds between retries of failed requests.
retry_wait_time = 2

# Comma-separated list of accepted status codes for valid links.
accept = [200, 429]

# Proceed for server connections considered insecure (invalid TLS).
insecure = false

# Only test links with the given schemes (e.g. https).
# Omit to check links with any scheme.
# scheme = [ "https" ]

# When links are available using HTTPS, treat HTTP links as errors.
require_https = true

# Request method
method = "get"

# Custom request headers
headers = []

# Remap URI matching pattern to different URI.
# remap = [ "https://example.com http://example.invalid" ]

# Base URL or website root directory to check relative URLs.
# base = "https://example.com"

# HTTP basic auth support. This will be the username and password passed to the
# authorization HTTP header. See
# <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization>
# basic_auth = "user:pwd"

############################# Exclusions ##########################

# Skip missing input files (default is to error if they don't exist).
skip_missing = false

# Check links inside `<code>` and `<pre>` blocks as well as Markdown code
# blocks.
include_verbatim = false

# Ignore case of paths when matching glob patterns.
glob_ignore_case = false

# Exclude URLs and mail addresses from checking (supports regex).
# exclude = [ '.*\.github.com\.*' ]
exclude = [
'github\.com', # Requires authentication (403)
'turing\.ac\.uk', # DDOS protection
'ipaddressguide\.com', # 403
'opensource\.org' # 403
]

# Exclude these filesystem paths from getting checked.
# exclude_path = ["file/path/to/Ignore", "./other/file/path/to/Ignore"]
exclude_path = [
'docs/build/html/_static/webpack-macros.html'
]

# URLs to check (supports regex). Has preference over all excludes.
# include = [ 'gist\.github\.com.*' ]

# Exclude all private IPs from checking.
# Equivalent to setting `exclude_private`, `exclude_link_local`, and
# `exclude_loopback` to true.
exclude_all_private = false

# Exclude private IP address ranges from checking.
exclude_private = false

# Exclude link-local IP address range from checking.
exclude_link_local = false

# Exclude loopback IP address range and localhost from checking.
exclude_loopback = false

# Exclude all mail addresses from checking.
exclude_mail = false
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/source/conf.py

# formats:
# - pdf

python:
install:
- requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cff-version: 1.2.0
message: "To acknowledge the data safe haven please use the citation and references below."
title: "Turing Data Safe Haven"
url: "https://alan-turing-institute.github.io/data-safe-haven/develop/index.html"
url: "https://data-safe-haven.readthedocs.io"
repository-code: "https://github.com/alan-turing-institute/data-safe-haven"
authors:
- given-names: James
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ GitHub has a [nice introduction](https://docs.github.com/en/get-started/quicksta

### Making a change to the documentation

The docs, including for older releases, are available [here](https://alan-turing-institute.github.io/data-safe-haven).
The docs, including for older releases, are available [here](https://data-safe-haven.readthedocs.io).

You should follow the same instructions as above to [make a change with a pull request](#making-a-change-with-a-pull-request) when editing the documentation.

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
![Data Safe Haven cartoon by Scriberia for The Alan Turing Institute](docs/static/scriberia_diagram.jpg)
![Data Safe Haven cartoon by Scriberia for The Alan Turing Institute](docs/_static/scriberia_diagram.jpg)

# :eyes: What is the Turing Data Safe Haven?

The **Turing Data Safe Haven** is an open-source framework for creating secure environments to analyse sensitive data.
It provides a set of scripts and templates that will allow you to deploy, administer and use your own secure environment.
It was developed as part of the Alan Turing Institute's [Data Safe Havens in the Cloud](https://www.turing.ac.uk/research/research-projects/data-safe-havens-cloud) project.

[![Docs](https://github.com/alan-turing-institute/data-safe-haven/actions/workflows/build_docs.yaml/badge.svg)](https://alan-turing-institute.github.io/data-safe-haven)
[![Documentation](https://readthedocs.org/projects/data-safe-haven/badge/?version=latest)](https://data-safe-haven.readthedocs.io/en/latest/?badge=latest)
[![Lint code](https://github.com/alan-turing-institute/data-safe-haven/actions/workflows/lint_code.yaml/badge.svg)](https://github.com/alan-turing-institute/data-safe-haven/actions/workflows/lint_code.yaml)
[![Test code](https://github.com/alan-turing-institute/data-safe-haven/actions/workflows/test_code.yaml/badge.svg)](https://github.com/alan-turing-institute/data-safe-haven/actions/workflows/test_code.yaml)
[![Latest version](https://img.shields.io/github/v/release/alan-turing-institute/data-safe-haven?style=flat&label=Latest&color=%234B78E6)](https://github.com/alan-turing-institute/data-safe-haven/releases)
Expand All @@ -16,7 +16,7 @@ It was developed as part of the Alan Turing Institute's [Data Safe Havens in the

## :family: Community & support

- Visit the [Data Safe Haven website](https://alan-turing-institute.github.io/data-safe-haven) for full documentation and useful links.
- Visit the [Data Safe Haven website](https://data-safe-haven.readthedocs.io) for full documentation and useful links.
- Join our [Slack server](https://join.slack.com/t/turingdatasafehaven/shared_invite/zt-104oyd8wn-DyOufeaAQFiJDlG5dDGk~w) to ask questions, discuss features, and for general API chat.
- Open a [discussion on GitHub](https://github.com/alan-turing-institute/data-safe-haven/discussions) for general questions, feature suggestions, and help with our deployment scripts.
- Look through our [issues on GitHub](https://github.com/alan-turing-institute/data-safe-haven/issues) to see what we're working on and progress towards specific fixes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hash: d71b670e3d0f5829d3cf107bba5d4da547ddcc010f62bccf758229891f1a16a4
version: 2023.03.0-386
hash: 2e8030828b93751ebc02fbbd6334d62600e7ab12c46d3f087a5222583e436238
version: 2023.03.1-446
debfile: rstudio-|VERSION|-amd64.deb
remote: https://download1.rstudio.org/electron/bionic/amd64/|DEBFILE|
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hash: 0a347709cd07eebd4ce0c635d87c87151e81254bbc390265a45a6c1ff438cb23
version: 2023.03.0-386
hash: 464038393a380321afb96793f8775852ce75f29340bd5d49a0c7ccbe77e411c0
version: 2023.03.1-446
debfile: rstudio-|VERSION|-amd64.deb
remote: https://download1.rstudio.org/electron/jammy/amd64/|DEBFILE|
Loading