fix docs/locales code escaping and css overflow

This commit is contained in:
Artur Paikin 2019-07-31 17:48:50 +03:00
parent d05f37488d
commit 5a0055c15d
2 changed files with 4 additions and 1 deletions

View file

@ -202,7 +202,7 @@ function injectLocaleList () {
const languageName = LocaleCode.getLanguageName(localeNameWithDash)
const countryName = LocaleCode.getCountryName(localeNameWithDash)
const npmPath = `<code><a href="https://www.npmjs.com/package/@uppy/locales">@uppy/locales</a>/lib/${localeName}</code>`
const npmPath = `<code class="raw"><a href="https://www.npmjs.com/package/@uppy/locales">@uppy/locales</a>/lib/${localeName}</code>`
const cdnPath = `[\`${localeName}.min.js\`](https://transloadit.edgly.net/releases/uppy/locales/v${localePackageVersion}/${localeName}.min.js)`
const githubSource = `[\`${localeName}.js\`](https://github.com/transloadit/uppy/blob/master/packages/%40uppy/locales/src/${localeName}.js)`
const mdTableRow = `| ${languageName}<br/> <small>${countryName}</small>${variant ? `<br /><small>(${variant})</small>` : ''} | ${npmPath} | ${cdnPath} | ✏️ ${githubSource} |`

View file

@ -360,6 +360,9 @@
.page-docs-locales table {
overflow: visible;
}
.page-docs-locales .highlight table {
overflow: scroll;
}
.page-docs-locales table td {
white-space: nowrap;
font-size: 90%;