Skip to content

Commit 5ed63a9

Browse files
authored
Subdomain Consolidation v4.2 (#960)
* Update URLs for subdomain consolidation * DOP-2811: Makefile: Remove -qa suffix and non-dotcom publishing
1 parent 8d9f70d commit 5ed63a9

File tree

3 files changed

+22
-34
lines changed

3 files changed

+22
-34
lines changed

Makefile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ DOTCOM_STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
1212
DOTCOM_STAGING_BUCKET=docs-mongodb-org-dotcomstg
1313
DOTCOM_PRODUCTION_URL="https://mongodb.com"
1414
DOTCOM_PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
15-
DOTCOM_PREFIX=docs-qa
16-
DOTCOM_STGPREFIX=docs-qa
15+
DOTCOM_PREFIX=docs
16+
DOTCOM_STGPREFIX=docs
1717

1818

1919

@@ -59,16 +59,10 @@ publish: examples ## Builds this branch's publishable HTML and other artifacts u
5959
# <basename>/<filename>.
6060
# * Upload each to the S3 bucket under <project>/<username>/<basename>/<filename>
6161
stage: ## Host online for review
62-
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
63-
@echo "Hosted at ${STAGING_URL}/${USER}/${GIT_BRANCH}/index.html"
64-
65-
6662
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
6763
@echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
6864

6965

70-
71-
7266
# - Enter build/public/<branch>, as well as any symbolic links pointing
7367
# to it, and recurse over each file <basename>/<filename>.
7468
# * Upload each to the S3 bucket under <project>/<basename>/<filename>.
@@ -84,14 +78,8 @@ stage: ## Host online for review
8478
# The recursive behavior would CHANGE if --all-subdirectories were
8579
# given: ALL contents of build/public/<branch> would be upload
8680
deploy: build/public ## Deploy to the production bucket
87-
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --redirect-prefix='v[0-9]\.[0-9]' --redirect-prefix='manual' --redirect-prefix='master' ${ARGS}
88-
89-
@echo "Hosted at ${PRODUCTION_URL}/index.html"
90-
9181
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --redirect-prefix='v[0-9]\.[0-9]' --redirect-prefix='manual' --redirect-prefix='master' ${ARGS}
92-
9382
@echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"
94-
9583
$(MAKE) deploy-search-index
9684

9785
deploy-search-index: ## Update the search index for this branch

conf.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ def has(self, *args):
9191

9292

9393
extlinks = {
94-
'hardlink' : ( 'https://docs.mongodb.com/{0}/%s'.format(conf.git.branches.current), ''),
94+
'hardlink' : ( 'https://www.mongodb.com/docs/{0}/%s'.format(conf.git.branches.current), ''),
9595
'issue': ('https://jira.mongodb.org/browse/%s', '' ),
96-
'api': ('https://docs.mongodb.com/drivers/%s', ''),
97-
'gettingstarted': ('https://docs.mongodb.com/getting-started%s', ''),
98-
'manual': ('https://docs.mongodb.com/manual%s', ''),
99-
'ecosystem': ('https://docs.mongodb.com/ecosystem%s', ''),
100-
'mms-docs': ('https://docs.cloudmanager.mongodb.com%s', ''),
96+
'api': ('https://www.mongodb.com/docs/drivers/%s', ''),
97+
'gettingstarted': ('https://www.mongodb.com/docs/getting-started%s', ''),
98+
'manual': ('https://www.mongodb.com/docs/manual%s', ''),
99+
'ecosystem': ('https://www.mongodb.com/docs/ecosystem%s', ''),
100+
'mms-docs': ('https://www.mongodb.com/docs/cloud-manager%s', ''),
101101
'mms-home': ('https://www.mongodb.com/cloud/cloud-manager%s', ''),
102-
'opsmgr': ('https://docs.opsmanager.mongodb.com/current%s', ''),
103-
'atlas': ('https://docs.atlas.mongodb.com%s',''),
104-
'compass': ('https://docs.mongodb.com/compass/current%s', ''),
102+
'opsmgr': ('https://www.mongodb.com/docs/ops-manager/current%s', ''),
103+
'atlas': ('https://www.mongodb.com/docs/atlas%s',''),
104+
'compass': ('https://www.mongodb.com/docs/compass/current%s', ''),
105105
'products': ('https://www.mongodb.com/products%s', ''),
106106
'wtdocs': ('https://source.wiredtiger.com/mongodb-4.2%s', ''),
107107
'perl-api': ('https://metacpan.org/pod/MongoDB::%s', ''),
@@ -114,14 +114,14 @@ def has(self, *args):
114114
'java-async-docs': ('https://mongodb.github.io/mongo-java-driver-reactivestreams/1.6/%s', ''),
115115
'java-async-api': ('https://mongodb.github.io/mongo-java-driver-reactivestreams/1.6/javadoc/%s', ''),
116116
'go-api': ('https://godoc.org/github.com/mongodb/mongo-go-driver/%s', ''),
117-
'v4.0': ('https://docs.mongodb.com/v4.0%s', ''),
118-
'v3.6': ('https://docs.mongodb.com/v3.6%s', ''),
119-
'v3.4': ('https://docs.mongodb.com/v3.4%s', ''),
120-
'v3.2': ('https://docs.mongodb.com/v3.2%s', ''),
121-
'v3.0': ('https://docs.mongodb.com/v3.0%s', ''),
122-
'v2.6': ('https://docs.mongodb.com/v2.6%s', ''),
123-
'v2.4': ('https://docs.mongodb.com/v2.4%s', ''),
124-
'v2.2': ('https://docs.mongodb.com/v2.2%s', '')
117+
'v4.0': ('https://www.mongodb.com/docs/v4.0%s', ''),
118+
'v3.6': ('https://www.mongodb.com/docs/v3.6%s', ''),
119+
'v3.4': ('https://www.mongodb.com/docs/v3.4%s', ''),
120+
'v3.2': ('https://www.mongodb.com/docs/v3.2%s', ''),
121+
'v3.0': ('https://www.mongodb.com/docs/v3.0%s', ''),
122+
'v2.6': ('https://www.mongodb.com/docs/v2.6%s', ''),
123+
'v2.4': ('https://www.mongodb.com/docs/v2.4%s', ''),
124+
'v2.2': ('https://www.mongodb.com/docs/v2.2%s', '')
125125
}
126126

127127
## add `extlinks` for each published version.

config/intersphinx.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ url: https://motor.readthedocs.io/en/stable/
77
path: motor.inv
88
---
99
name: phplib
10-
url: https://docs.mongodb.com/php-library/master/
10+
url: https://www.mongodb.com/docs/php-library/master/
1111
path: phplib.inv
1212
---
1313
name: clouddocs
14-
url: https://docs.atlas.mongodb.com/
14+
url: https://www.mongodb.com/docs/atlas/
1515
path: cloud-docs.inv
1616
---
1717
name: compassdocs
18-
url: https://docs.mongodb.com/compass/current/
18+
url: https://www.mongodb.com/docs/compass/current/
1919
path: compass-docs.inv
2020
...

0 commit comments

Comments
 (0)