Skip to content

Commit 2e6776e

Browse files
authored
Merge pull request #2 from rustagir/DOCSP-30563-link-api
DOCSP-30563: link to api docs
2 parents 90d121f + 4c8eca4 commit 2e6776e

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Copy Files to docs-shared
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
paths:
8+
- "source/includes/mongodb-compatibility-table-rust.rst"
9+
- "source/includes/language-compatibility-table-rust.rst"
10+
11+
jobs:
12+
copy-file:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Copy mongodb-compat table
19+
uses: dmnemec/copy_file_to_another_repo_action@main
20+
env:
21+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
22+
with:
23+
source_file: "source/includes/mongodb-compatibility-table-rust.rst"
24+
destination_repo: "10gen/docs-shared"
25+
destination_folder: "dbx"
26+
user_email: "[email protected]"
27+
user_name: "docs-builder-bot"
28+
commit_message: "Auto-import from docs-rust"
29+
30+
- name: Copy language-compat table
31+
uses: dmnemec/copy_file_to_another_repo_action@main
32+
env:
33+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
34+
with:
35+
source_file: "source/includes/language-compatibility-table-rust.rst"
36+
destination_repo: "10gen/docs-shared"
37+
destination_folder: "dbx"
38+
user_email: "[email protected]"
39+
user_name: "docs-builder-bot"
40+
commit_message: "Auto-import from docs-rust"

source/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
:titlesonly:
77
:maxdepth: 1
88

9+
API Documentation <{+api+}/>
910
View the Source <https://github.com/mongodb/mongo-rust-driver>
1011

1112
..
@@ -14,7 +15,6 @@
1415
/whats-new
1516
/usage-examples
1617
/fundamentals
17-
API Documentation <{+api+}/mongo>
1818
/faq
1919
/connection-troubleshooting
2020
/issues-and-help

0 commit comments

Comments
 (0)