Skip to content

Commit d11fd42

Browse files
committed
Updated docs api links to be version-less
1 parent cdb3b03 commit d11fd42

File tree

19 files changed

+39
-39
lines changed

19 files changed

+39
-39
lines changed

.github/ISSUE_TEMPLATE/--anything-else.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Alternatively, check out these resources below. Thanks! 😁.
1717

1818
- [Forum](https://forum.ghost.org/c/help)
1919
- [Theme Support](https://forum.ghost.org/c/themes)
20-
- [Theme Docs](https://ghost.org/docs/api/v2/handlebars-themes/)
21-
- [API Docs](https://ghost.org/docs/api/v2/)
20+
- [Theme Docs](https://ghost.org/docs/api/handlebars-themes/)
21+
- [API Docs](https://ghost.org/docs/api/)
2222
- [Feature Requests / Ideas](https://forum.ghost.org/c/Ideas)
2323
- [Contributing Guide](https://ghost.org/docs/concepts/contributing/)
2424
- [Self-hoster Docs](https://ghost.org/docs/)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $ ghost install
8585

8686
 
8787

88-
Check out our [official documentation](https://ghost.org/docs/) for more information about our [recommended hosting stack](https://ghost.org/docs/concepts/hosting/) & properly [upgrading Ghost](https://ghost.org/faq/upgrade-to-ghost-2-0/), plus everything you need to develop your own Ghost [themes](https://ghost.org/docs/api/v2/handlebars-themes/) or work with [our API](https://ghost.org/docs/api/v2/).
88+
Check out our [official documentation](https://ghost.org/docs/) for more information about our [recommended hosting stack](https://ghost.org/docs/concepts/hosting/) & properly [upgrading Ghost](https://ghost.org/faq/upgrade-to-ghost-2-0/), plus everything you need to develop your own Ghost [themes](https://ghost.org/docs/api/handlebars-themes/) or work with [our API](https://ghost.org/docs/api/).
8989

9090
 
9191

content/settings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### routes.yaml
44

5-
To find out more about `routes.yaml` configuration and how to use it visit [documentation](https://ghost.org/docs/api/v2/handlebars-themes/routing/).
5+
To find out more about `routes.yaml` configuration and how to use it visit [documentation](https://ghost.org/docs/api/handlebars-themes/routing/).
66

77
This is how the default `routes.yaml` file looks like:
88

core/frontend/helpers/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ module.exports = function getLabsWrapper() {
223223
// Even though this is a labs enabled helper, really we want users to upgrade to v2 API.
224224
errMessagePath: 'warnings.helpers.get.apiRequired.message',
225225
errContextPath: 'warnings.helpers.get.apiRequired.context',
226-
helpUrl: 'https://ghost.org/docs/api/v2/handlebars-themes/packagejson/',
226+
helpUrl: 'https://ghost.org/docs/api/handlebars-themes/packagejson/',
227227
async: true
228228
}, function executeHelper() {
229229
return get.apply(self, args);

core/frontend/helpers/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pagination = function (options) {
1919
throw new errors.IncorrectUsageError({
2020
level: 'normal',
2121
message: i18n.t('warnings.helpers.pagination.invalidData'),
22-
help: 'https://ghost.org/docs/api/v2/handlebars-themes/helpers/pagination/'
22+
help: 'https://ghost.org/docs/api/handlebars-themes/helpers/pagination/'
2323
});
2424
}
2525

core/frontend/services/redirects/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const validate = (redirects) => {
99
if (!_.isArray(redirects)) {
1010
throw new common.errors.ValidationError({
1111
message: common.i18n.t('errors.utils.redirectsWrongFormat'),
12-
help: 'https://ghost.org/docs/api/v2/handlebars-themes/routing/redirects/'
12+
help: 'https://ghost.org/docs/api/handlebars-themes/routing/redirects/'
1313
});
1414
}
1515

@@ -18,7 +18,7 @@ const validate = (redirects) => {
1818
throw new common.errors.ValidationError({
1919
message: common.i18n.t('errors.utils.redirectsWrongFormat'),
2020
context: redirect,
21-
help: 'https://ghost.org/docs/api/v2/handlebars-themes/routing/redirects/'
21+
help: 'https://ghost.org/docs/api/handlebars-themes/routing/redirects/'
2222
});
2323
}
2424
});

core/server/data/importer/importers/data/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ DataImporter = {
5959
if (!importData.meta) {
6060
throw new common.errors.IncorrectUsageError({
6161
message: 'Wrong importer structure. `meta` is missing.',
62-
help: 'https://ghost.org/docs/api/v2/migration/#json-file-structure'
62+
help: 'https://ghost.org/docs/api/migration/#json-file-structure'
6363
});
6464
}
6565

6666
if (!importData.meta.version) {
6767
throw new common.errors.IncorrectUsageError({
6868
message: 'Wrong importer structure. `meta.version` is missing.',
69-
help: 'https://ghost.org/docs/api/v2/migration/#json-file-structure'
69+
help: 'https://ghost.org/docs/api/migration/#json-file-structure'
7070
});
7171
}
7272

core/server/data/schema/fixtures/fixtures.json

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

core/server/lib/fs/package-json/parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function parsePackageJson(path) {
3030
if (!hasRequiredKeys) {
3131
err = new Error(common.i18n.t('errors.utils.parsepackagejson.nameOrVersionMissing'));
3232
err.context = path;
33-
err.help = common.i18n.t('errors.utils.parsepackagejson.willBeRequired', {url: 'https://ghost.org/docs/api/v2/handlebars-themes/'});
33+
err.help = common.i18n.t('errors.utils.parsepackagejson.willBeRequired', {url: 'https://ghost.org/docs/api/handlebars-themes/'});
3434

3535
return Promise.reject(err);
3636
}
@@ -39,7 +39,7 @@ function parsePackageJson(path) {
3939
} catch (parseError) {
4040
err = new Error(common.i18n.t('errors.utils.parsepackagejson.themeFileIsMalformed'));
4141
err.context = path;
42-
err.help = common.i18n.t('errors.utils.parsepackagejson.willBeRequired', {url: 'https://ghost.org/docs/api/v2/handlebars-themes/'});
42+
err.help = common.i18n.t('errors.utils.parsepackagejson.willBeRequired', {url: 'https://ghost.org/docs/api/handlebars-themes/'});
4343

4444
return Promise.reject(err);
4545
}

core/server/services/auth/authorize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const authorize = {
2727
return next(new common.errors.NoPermissionError({
2828
message: common.i18n.t('errors.middleware.auth.publicAPIDisabled.error'),
2929
context: common.i18n.t('errors.middleware.auth.publicAPIDisabled.context'),
30-
help: common.i18n.t('errors.middleware.auth.forInformationRead', {url: 'https://ghost.org/docs/api/v2/content/'})
30+
help: common.i18n.t('errors.middleware.auth.forInformationRead', {url: 'https://ghost.org/docs/api/content/'})
3131
}));
3232
}
3333

0 commit comments

Comments
 (0)