Skip to content

Commit

Permalink
[docs-infra] Support rendering markdown outside of docs (mui#37691)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 24, 2023
1 parent 314c3d4 commit aeae4a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ module.exports = withDocsInfra({
: null,
LIB_VERSION: pkg.version,
FEEDBACK_URL: process.env.FEEDBACK_URL,
SOURCE_CODE_ROOT_URL: 'https://github.com/mui/material-ui/blob/master', // #default-branch-switch
DEFAULT_BRANCH: 'master', // #default-branch-switch
SOURCE_CODE_REPO: 'https://github.com/mui/material-ui',
GITHUB_TEMPLATE_DOCS_FEEDBACK: '4.docs-feedback.yml',
BUILD_ONLY_ENGLISH_LOCALE: buildOnlyEnglishLocale,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/EditPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function EditPage(props) {
component="a"
href={
userLanguage === 'en'
? `${process.env.SOURCE_CODE_ROOT_URL}${sourceLocation}`
? `${process.env.SOURCE_CODE_REPO}/edit/${process.env.DEFAULT_BRANCH}${sourceLocation}`
: `${CROWDIN_ROOT_URL}${crowdInLocale}#/${process.env.SOURCE_CODE_ROOT_URL.replace(
'https://github.com/mui/',
'',
Expand Down

0 comments on commit aeae4a3

Please sign in to comment.