Skip to content

Commit 7ea679e

Browse files
committed
Move the user guide from doc to doc/user-guide
1 parent c8e9284 commit 7ea679e

33 files changed

+12
-4
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- stable
77
- master
88

9+
# Builds docs for both stable and master branches.
10+
# stable is placed in the root of the gh-pages branch, while master is placed at /devel
11+
912
jobs:
1013
doc:
1114
name: Documentation
@@ -21,11 +24,16 @@ jobs:
2124
echo "`pwd`/mdbook" >> $GITHUB_PATH
2225
- name: Build book
2326
run: |
27+
# Build for stable
2428
git checkout stable
25-
cd doc
29+
# Support both old and new directory structure during the transition
30+
cd doc/user-guide || cd doc
2631
mdbook build
2732
mv book ${{ runner.temp }}
33+
# Build for master
34+
cd $(git rev-parse --show-toplevel)
2835
git checkout master
36+
cd doc/user-guide
2937
mdbook build
3038
mv book ${{ runner.temp }}/book/devel
3139
- name: Deploy to GitHub
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[book]
2-
title = "The rustup book"
32
authors = ["The Rust Project Developers"]
3+
title = "The rustup book"
44

55
[output.html]
6-
git-repository-url = "https://github.com/rust-lang/rustup/tree/master/doc"
6+
edit-url-template = "https://github.com/rust-lang/rustup/edit/master/doc/user-guide/{path}"
7+
git-repository-url = "https://github.com/rust-lang/rustup/tree/master/doc/user-guide"
78
site-url = "https://rust-lang.github.io/rustup/"
8-
edit-url-template = "https://github.com/rust-lang/rustup/edit/master/doc/{path}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)