@@ -2,7 +2,7 @@ name: docs
2
2
3
3
on :
4
4
push :
5
- branches : [master ]
5
+ branches : [main ]
6
6
paths :
7
7
- " .github/workflows/docs.yml"
8
8
- " gdk4/**"
62
62
- run : python3 ./generator.py --embed-docs --yes ./
63
63
- run : echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV}
64
64
- run : echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ env.RELEASE }}'; else echo 'git'; fi)" >> ${GITHUB_ENV}
65
- - run : echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk4-rs/' --default-branch 'master ' pre-docs | xargs)" >> ${GITHUB_ENV}
65
+ - run : echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk4-rs/' --default-branch 'main ' pre-docs | xargs)" >> ${GITHUB_ENV}
66
66
env :
67
67
RUSTDOCFLAGS : >
68
68
--extern-html-root-url=wayland_client=https://smithay.github.io/wayland-rs/
@@ -108,7 +108,7 @@ jobs:
108
108
109
109
sed -i 's|section-tree-widget.html|https://docs.gtk.org/gtk4/section-tree-widget.html|g' target/doc/gtk4/struct.TreeView.html
110
110
- name : GTK Docs Images
111
- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }}
111
+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }}
112
112
run : |
113
113
git clone --depth=1 https://gitlab.gnome.org/GNOME/gtk --no-checkout ./gtk-src
114
114
cd ./gtk-src
@@ -117,16 +117,16 @@ jobs:
117
117
git checkout main
118
118
mv ./docs/reference/gtk/images/*.png ../target/doc/gtk4
119
119
- name : Grab gtk-rs LOGO
120
- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }}
120
+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }}
121
121
run : |
122
- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
123
- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
124
- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
125
- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
126
- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs.svg -O ./target/doc/favicon.svg
122
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
123
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
124
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
125
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
126
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs.svg -O ./target/doc/favicon.svg
127
127
- name : deploy
128
128
uses : peaceiris/actions-gh-pages@v4
129
- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }}
129
+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }}
130
130
with :
131
131
github_token : ${{ secrets.GITHUB_TOKEN }}
132
132
publish_dir : ./target/doc/
@@ -136,7 +136,7 @@ jobs:
136
136
- run : python3 ./gir-rustdoc/gir-rustdoc.py --project-title 'GTK 4 Rust bindings' html-index --early-section 'Book' '<ul><li><a href="stable/latest/book">Latest stable</a></li></ul>'
137
137
- name : deploy index page
138
138
uses : peaceiris/actions-gh-pages@v4
139
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master ' }}
139
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }}
140
140
with :
141
141
github_token : ${{ secrets.GITHUB_TOKEN }}
142
142
publish_dir : ./public/
0 commit comments