Skip to content

Commit ce7d7a2

Browse files
committed
DOP-2671: Update conf.py for subdomain consolidation
1 parent 3809445 commit ce7d7a2

File tree

3 files changed

+24
-33
lines changed

3 files changed

+24
-33
lines changed

Makefile

Lines changed: 2 additions & 11 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/meta
16-
DOTCOM_STGPREFIX=docs-qa/meta
15+
DOTCOM_PREFIX=docs/meta
16+
DOTCOM_STGPREFIX=docs/meta
1717

1818
.PHONY: help lint html stage deploy
1919

@@ -37,9 +37,6 @@ publish: ## Builds this branch's publishable HTML and other artifacts under buil
3737
# <basename>/<filename>.
3838
# * Upload each to the S3 bucket under <project>/<username>/<basename>/<filename>
3939
stage: ## Host online for review
40-
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
41-
@echo "Hosted at ${STAGING_URL}/${PROJECT}/${USER}/${GIT_BRANCH}/index.html"
42-
4340
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
4441
@echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
4542

@@ -61,11 +58,5 @@ stage: ## Host online for review
6158
# The recursive behavior would CHANGE if --all-subdirectories were
6259
# given: ALL contents of build/public/<branch> would be upload
6360
deploy: build/public ## Deploy to the production bucket
64-
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --all-subdirectories ${ARGS}
65-
66-
@echo "Hosted at ${PRODUCTION_URL}/index.html"
67-
68-
6961
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --all-subdirectories ${ARGS}
70-
7162
@echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"

conf.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,34 +77,34 @@ def has(self, *args):
7777
'hardlink' : ( 'http://docs.mongodb.com/{0}/%s'.format(conf.git.branches.current), ''),
7878
'issue': ('https://jira.mongodb.org/browse/%s', '' ),
7979
'api': ('https://api.mongodb.com/%s', ''),
80-
'gettingstarted': ('https://docs.mongodb.com/getting-started%s', ''),
81-
'manual': ('https://docs.mongodb.com/manual%s', ''),
82-
'ecosystem': ('https://docs.mongodb.com/ecosystem%s', ''),
83-
'mms-docs': ('https://docs.cloudmanager.mongodb.com%s', ''),
80+
'gettingstarted': ('https://www.mongodb.com/docs/getting-started%s', ''),
81+
'manual': ('https://www.mongodb.com/docs/manual%s', ''),
82+
'ecosystem': ('https://www.mongodb.com/docs/ecosystem%s', ''),
83+
'mms-docs': ('https://www.mongodb.com/docs/cloud-manager%s', ''),
8484
'mms-home': ('https://www.mongodb.com/cloud/cloud-manager%s', ''),
85-
'opsmgr': ('https://docs.opsmanager.mongodb.com/current%s', ''),
86-
'cldmgr': ('https://docs.cloudmanager.mongodb.com/%s', ''),
87-
'atlas': ('https://docs.atlas.mongodb.com/%s', ''),
85+
'opsmgr': ('https://www.mongodb.com/docs/ops-manager/current%s', ''),
86+
'cldmgr': ('https://www.mongodb.com/docs/cloud-manager/%s', ''),
87+
'atlas': ('https://www.mongodb.com/docs/atlas/%s', ''),
8888
'products': ('https://www.mongodb.com/products%s', ''),
8989
'wtdocs': ('http://source.wiredtiger.com/mongodb-3.4%s', ''),
90-
'v2.2': ('https://docs.mongodb.com/v2.2%s', ''),
91-
'v2.4': ('https://docs.mongodb.com/v2.4%s', ''),
92-
'v2.6': ('https://docs.mongodb.com/v2.6%s', ''),
93-
'v3.0': ('https://docs.mongodb.com/v3.0%s', ''),
94-
'v3.2': ('https://docs.mongodb.com/v3.2%s', ''),
95-
'v3.4': ('https://docs.mongodb.com/v3.4%s', ''),
96-
'v3.6': ('https://docs.mongodb.com/v3.6%s', ''),
97-
'v4.0': ('https://docs.mongodb.com/v4.0%s', ''),
98-
'bic': ('https://docs.mongodb.com/bi-connector/current%s',''),
99-
'k8s': ('https://docs.mongodb.com/kubernetes-operator/stable%s',''),
90+
'v2.2': ('https://www.mongodb.com/docs/v2.2%s', ''),
91+
'v2.4': ('https://www.mongodb.com/docs/v2.4%s', ''),
92+
'v2.6': ('https://www.mongodb.com/docs/v2.6%s', ''),
93+
'v3.0': ('https://www.mongodb.com/docs/v3.0%s', ''),
94+
'v3.2': ('https://www.mongodb.com/docs/v3.2%s', ''),
95+
'v3.4': ('https://www.mongodb.com/docs/v3.4%s', ''),
96+
'v3.6': ('https://www.mongodb.com/docs/v3.6%s', ''),
97+
'v4.0': ('https://www.mongodb.com/docs/v4.0%s', ''),
98+
'bic': ('https://www.mongodb.com/docs/bi-connector/current%s',''),
99+
'k8s': ('https://www.mongodb.com/docs/kubernetes-operator/stable%s',''),
100100
'product': ('http://www.mongodb.com/products/%s?jmp=docs',''),
101101
'website': ('https://www.mongodb.com%s?jmp=docs',''),
102102
'dl': ('http://www.mongodb.com/download-center/%s?jmp=docs',''),
103103
'aws': ('http://docs.aws.amazon.com%s',''),
104-
'driver' : ('https://docs.mongodb.com/ecosystem/drivers%s', ''),
104+
'driver' : ('https://www.mongodb.com/docs/drivers%s', ''),
105105
'wikipedia' : ('https://en.wikipedia.org/wiki%s', ''),
106106
'mw' : ('https://www.merriam-webster.com/dictionary/%s',''),
107-
'mdbdrivers' : ('https://docs.mongodb.com/ecosystem/drivers/%s',''),
107+
'mdbdrivers' : ('https://www.mongodb.com/docs/drivers/%s',''),
108108
'cmos17' : ('https://www.chicagomanualofstyle.org/book/ed17%s',''),
109109
'sphinx-rst' : ('https://www.sphinx-doc.org/en/master/usage/restructuredtext%s', ''),
110110
'sphinx' : ('https://www.sphinx-doc.org/en/master%s', ''),

config/intersphinx.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: mongodb
2-
url: https://docs.mongodb.com/manual/
2+
url: https://www.mongodb.com/docs/manual/
33
path: mongodb.inv
44
---
55
name: clouddocs
6-
url: https://docs.atlas.mongodb.com/
6+
url: https://www.mongodb.com/docs/atlas/
77
path: cloud-docs.inv
88
---
99
name: compassdocs
10-
url: https://docs.mongodb.com/compass/current/
10+
url: https://www.mongodb.com/docs/compass/current/
1111
path: compass-docs.inv
1212
...

0 commit comments

Comments
 (0)