Skip to content

Commit 8f973d4

Browse files
committed
migrate docs to RTD
1 parent af331f8 commit 8f973d4

File tree

3 files changed

+24
-33
lines changed

3 files changed

+24
-33
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,3 @@ jobs:
3939
run: |
4040
cd docs
4141
make linkcheck
42-
43-
build-and-publish:
44-
runs-on: ubuntu-22.04
45-
46-
permissions:
47-
# required to push to the gh-pages branch
48-
contents: write
49-
50-
steps:
51-
- uses: actions/checkout@v3
52-
- uses: actions/setup-python@v4
53-
with:
54-
python-version: "3.11"
55-
56-
- name: Install dependencies
57-
run: |
58-
pip install -r docs/doc-requirements.txt
59-
60-
- name: make html (Builds documentation)
61-
run: |
62-
cd docs
63-
make html
64-
65-
- name: Publish to GitHub Pages
66-
if: github.ref == 'refs/heads/main'
67-
run: |
68-
pip install ghp-import
69-
ghp-import --no-jekyll --push --message "Update documentation [skip ci]" docs/_build/html

.readthedocs.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Configuration on how ReadTheDocs (RTD) builds our documentation
2+
# ref: https://readthedocs.org/projects/nbgitpuller/
3+
# ref: https://docs.readthedocs.io/en/stable/config-file/v2.html
4+
#
5+
version: 2
6+
7+
sphinx:
8+
configuration: docs/source/conf.py
9+
10+
build:
11+
os: ubuntu-20.04
12+
tools:
13+
python: "3.10"
14+
15+
python:
16+
install:
17+
- requirements: docs/doc-requirements.txt

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# [nbgitpuller](https://github.com/jupyterhub/nbgitpuller)
22

33
[![GitHub Workflow Status - Test](https://img.shields.io/github/workflow/status/jupyterhub/nbgitpuller/Tests?logo=github&label=tests)](https://github.com/jupyterhub/nbgitpuller/actions)
4-
[![CircleCI build status](https://img.shields.io/circleci/build/github/jupyterhub/nbgitpuller?logo=circleci&label=docs)](https://circleci.com/gh/jupyterhub/nbgitpuller)
4+
[![Documentation Status](https://readthedocs.org/projects/nbgitpuller/badge/?version=latest)](https://nbgitpuller.readthedocs.io/en/latest/?badge=latest)
55
[![](https://img.shields.io/pypi/v/nbgitpuller.svg?logo=pypi)](https://pypi.python.org/pypi/nbgitpuller)
66
[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue?logo=github)](https://github.com/jupyterhub/nbgitpuller/issues)
77
[![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/c/jupyterhub)
88
[![Gitter](https://img.shields.io/badge/social_chat-gitter-blue?logo=gitter)](https://gitter.im/jupyterhub/jupyterhub)
99

1010
`nbgitpuller` lets you distribute content in a git repository to your students
1111
by having them click a simple link. [Automatic
12-
merging](https://jupyterhub.github.io/nbgitpuller/topic/automatic-merging.html)
12+
merging](https://nbgitpuller.readthedocs.io/topic/automatic-merging.html)
1313
ensures that your students are never exposed to `git` directly. It is primarily
1414
used with a JupyterHub, but can also work on students' local computers.
1515

16-
See [the documentation](https://jupyterhub.github.io/nbgitpuller) for more
16+
See [the documentation](https://nbgitpuller.readthedocs.io) for more
1717
information.
1818

1919
## Installation
@@ -24,10 +24,12 @@ pip install nbgitpuller
2424

2525
## Example
2626

27-
This example shows how to use the [nbgitpuller link generator](https://jupyterhub.github.io/nbgitpuller/link)
27+
This example shows how to use the [nbgitpuller link generator]
2828
to create an nbgitpuller link, which a user then clicks.
2929

30-
1. The [nbgitpuller link generator GUI](https://jupyterhub.github.io/nbgitpuller/link) is used to create a
30+
[nbgitpuller link generator]: https://nbgitpuller.readthedocs.io/link
31+
32+
1. The nbgitpuller link generator GUI is used to create a
3133
link.
3234

3335
![](https://raw.githubusercontent.com/jupyterhub/nbgitpuller/9f380a933335f0f069b6e2f9965ed78c3abcce7a/docs/_static/nbgitpuller-link-generator.png)

0 commit comments

Comments
 (0)