Skip to content

Commit b792ac6

Browse files
authored
Merge pull request #195 from 10gen/merge-guides-new
Merge guides new
2 parents d04e748 + 66580c7 commit b792ac6

File tree

427 files changed

+6245
-9083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

427 files changed

+6245
-9083
lines changed

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/build
2+
.vscode
23
content.html
34
node_modules/
45
public
@@ -19,3 +20,42 @@ screenshot-scripts/.properties.ini
1920
/source/includes/release-base.yaml
2021
/source/includes/release-specifications.yaml
2122
/source/includes/fact-install-windows.rst
23+
24+
# dotnet
25+
*.swp
26+
*.*~
27+
project.lock.json
28+
.DS_Store
29+
*.pyc
30+
nupkg/
31+
32+
# Visual Studio Code
33+
.vscode
34+
35+
# Rider
36+
.idea
37+
38+
# User-specific files
39+
*.suo
40+
*.user
41+
*.userosscache
42+
*.sln.docstates
43+
44+
# Build results
45+
[Dd]ebug/
46+
[Dd]ebugPublic/
47+
[Rr]elease/
48+
[Rr]eleases/
49+
x64/
50+
x86/
51+
build/
52+
bld/
53+
[Bb]in/
54+
[Oo]bj/
55+
[Oo]ut/
56+
msbuild.log
57+
msbuild.err
58+
msbuild.wrn
59+
60+
# Visual Studio 2015
61+
.vs/

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com"
55
STAGING_BUCKET=docs-mongodb-org-prd-staging
66

77
PRODUCTION_BUCKET=docs-mongodb-org-prd
8-
PRODUCTION_URL=https://docs.mongodb.com/guides
8+
PRODUCTION_URL=https://mongodb.com/docs/guides
99

1010
PROJECT=guides
1111

@@ -39,7 +39,7 @@ stage: ## Host online for review
3939
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
4040
@echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
4141

42-
42+
4343

4444
deploy: build/public ## Deploy to the production bucket
4545
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --all-subdirectories ${ARGS}
@@ -70,15 +70,15 @@ examples:
7070
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-csharp-driver/master/tests/MongoDB.Driver.Examples/DocumentationExamples.cs -o ${DRIVERS_PATH}/DocumentationExamples.cs
7171
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-csharp-driver/master/tests/MongoDB.Driver.Examples/ChangeStreamExamples.cs -o ${DRIVERS_PATH}/ChangeStreamExamples.cs
7272
#curl -SfL https://raw.githubusercontent.com/mongodb/mongo-c-driver/master/tests/test-mongoc-sample-commands.c -o ${DRIVERS_PATH}/test-mongoc-sample-commands.c
73-
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-go-driver/master/examples/documentation_examples/examples.go -o ${DRIVERS_PATH}/examples.go
73+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-go-driver/master/examples/documentation_examples/examples.go -o ${DRIVERS_PATH}/examples.go
7474
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-java-driver-reactivestreams/master/examples/documentation/src/DocumentationSamples.java -o ${DRIVERS_PATH}/AsyncDocumentationSamples.java
7575
curl -Sfl https://raw.githubusercontent.com/skerschb/testauth/react_stitch_google/src/index.js -o ${DRIVERS_PATH}/react_stitch_google.js
76-
curl -Sfl https://raw.githubusercontent.com/mongodb/mongo-go-driver/master/examples/documentation_examples/examples.go -o ${DRIVERS_PATH}/examples.go
76+
curl -Sfl https://raw.githubusercontent.com/mongodb/mongo-go-driver/master/examples/documentation_examples/examples.go -o ${DRIVERS_PATH}/examples.go
7777
curl -SfL https://raw.githubusercontent.com/skerschb/testauth/master/src/index.js -o ${DRIVERS_PATH}/react_stitch_google.js
7878
cp examples/java/ConnectExample.java ${DRIVERS_PATH}/JavaConnectExample.java
7979
cp examples/csharp/Connect.cs ${DRIVERS_PATH}/csharpconnect.cs
80-
cp examples/go/assign/assign.go ${DRIVERS_PATH}/assign.go
81-
cp examples/go/connect/connect.go ${DRIVERS_PATH}/connect.go
80+
cp examples/go/assign/assign.go ${DRIVERS_PATH}/assign.go
81+
cp examples/go/connect/connect.go ${DRIVERS_PATH}/connect.go
8282
cp examples/python/connect/connect.py ${DRIVERS_PATH}/connect.py
8383
cp examples/go/connect/connect.go ${DRIVERS_PATH}/connect.go
8484
cp examples/motor/connect/connect.py ${DRIVERS_PATH}/motorconnect.py
@@ -97,10 +97,10 @@ screenshots:
9797
-rm -r screenshots-temp/guides
9898
mkdir -p screenshots-temp/guides
9999
cd build/docs-tools/tools/screenshot-tool && npm install
100-
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-provider.js `pwd`/screenshot-scripts/.properties.ini
100+
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-provider.js `pwd`/screenshot-scripts/.properties.ini
101101
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-clusterselect.js `pwd`/screenshot-scripts/.properties.ini
102-
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-importatlas.js `pwd`/screenshot-scripts/.properties.ini
103-
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstringcompass.js `pwd`/screenshot-scripts/.properties.ini
104-
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstringdrivers.js `pwd`/screenshot-scripts/.properties.ini
105-
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstringwhitelist.js `pwd`/screenshot-scripts/.properties.ini
102+
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-importatlas.js `pwd`/screenshot-scripts/.properties.ini
103+
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstringcompass.js `pwd`/screenshot-scripts/.properties.ini
104+
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstringdrivers.js `pwd`/screenshot-scripts/.properties.ini
105+
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstringwhitelist.js `pwd`/screenshot-scripts/.properties.ini
106106
#node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/guides-connectionstring.js `pwd`/screenshot-scripts/.properties.ini

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# docs-tutorials
22

33
[Tutorials site for MongoDB products and
4-
services](https://docs.mongodb.com/guides/).
4+
services](https://mongodb.com/docs/guides/).
55

6+
Remember to follow
7+
[this guide](https://wiki.corp.mongodb.com/display/DE/How-To%3A+Use+Snooty%27s+Autobuilder+to+Build+Your+Content)
8+
when you fork this repo to work on it.

conf-sitemap.xml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<site
3-
base_url="https://docs.mongodb.com/guides/"
4-
store_into="build/master/sitemap.xml.gz"
5-
verbose="1"
6-
>
2+
<site base_url="https://mongodb.com/docs/guides/" store_into="build/master/sitemap.xml.gz" verbose="1">
73

8-
<directory
9-
path="build/public/"
10-
url="https://docs.mongodb.com/guides/"
11-
default_file="index.html"
12-
/>
13-
<filter action="drop" type="wildcard" pattern="*~" />
14-
<filter action="drop" type="wildcard" pattern="*.txt" />
15-
<filter action="drop" type="wildcard" pattern="*_t" />
16-
<filter action="drop" type="wildcard" pattern="*.inv" />
17-
<filter action="drop" type="wildcard" pattern="*.asc" />
18-
<filter action="drop" type="wildcard" pattern="*.js" />
19-
<filter action="drop" type="wildcard" pattern="*.gif" />
20-
<filter action="drop" type="wildcard" pattern="*.png" />
21-
<filter action="drop" type="regexp" pattern="/\.[^/]*" />
22-
<filter action="drop" type="wildcard" pattern="*/single*"/>
23-
<filter action="drop" type="wildcard" pattern="*/_static/*" />
24-
<filter action="drop" type="wildcard" pattern="*/_images/*" />
25-
<filter action="drop" type="wildcard" pattern="*/search/" />
4+
<directory path="build/public/" url="https://mongodb.com/docs/guides/" default_file="index.html" />
5+
<filter action="drop" type="wildcard" pattern="*~" />
6+
<filter action="drop" type="wildcard" pattern="*.txt" />
7+
<filter action="drop" type="wildcard" pattern="*_t" />
8+
<filter action="drop" type="wildcard" pattern="*.inv" />
9+
<filter action="drop" type="wildcard" pattern="*.asc" />
10+
<filter action="drop" type="wildcard" pattern="*.js" />
11+
<filter action="drop" type="wildcard" pattern="*.gif" />
12+
<filter action="drop" type="wildcard" pattern="*.png" />
13+
<filter action="drop" type="regexp" pattern="/\.[^/]*" />
14+
<filter action="drop" type="wildcard" pattern="*/single*" />
15+
<filter action="drop" type="wildcard" pattern="*/_static/*" />
16+
<filter action="drop" type="wildcard" pattern="*/_images/*" />
17+
<filter action="drop" type="wildcard" pattern="*/search/" />
2618
</site>

config/build_conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ git:
55
project:
66
name: 'guides'
77
tag: 'guides'
8-
url: 'https://docs.mongodb.com/guides'
8+
url: 'https://mongodb.com/docs/guides'
99
title: "MongoDB Guides"
1010
branched: false
1111
version:

examples/csharp/Connect.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/csharp/Program.cs

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)