This commit is contained in:
Like Zhu 2021-06-07 15:50:06 -07:00
Родитель c2997445d7
Коммит 334e927285
2 изменённых файлов: 24 добавлений и 8 удалений

Просмотреть файл

@ -1,12 +1,12 @@
module.exports = {
title: 'overreact',
tagline: 'A universal data layer for React',
url: 'https://zlike.github.io',
baseUrl: '/overreact-website/',
url: 'https://microsoft.github.io',
baseUrl: '/overreact-core/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'zlike',
projectName: 'overreact-website',
organizationName: 'microsoft',
projectName: 'overreact-core',
themes: ['@docusaurus/theme-live-codeblock'],
themeConfig: {
hideableSidebar: true,
@ -35,8 +35,8 @@ module.exports = {
},
{to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://dev.azure.com/msasg/Bing_Ads/_git/AdsAppsCampaignUI?path=%2Fprivate%2Fclient-data%2Fpackages%2Foverreact',
label: 'Azure Repo',
href: 'https://github.com/microsoft/overreact-core',
label: 'GitHub',
position: 'right',
},
],
@ -94,7 +94,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/zlike/overreact-website/edit/master/website/',
'https://github.com/microsoft/overreact-core/packages/website/edit/master/website/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
@ -102,7 +102,7 @@ module.exports = {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/zlike/overreact-website/edit/master/website/blog/',
'https://github.com/microsoft/overreact-core/packages/website/edit/master/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),

16
travis.yml Normal file
Просмотреть файл

@ -0,0 +1,16 @@
language: node_js
node_js:
- '10'
branches:
only:
- main
cache:
yarn: true
before_script:
- cd packages/website
script:
- git config --global user.name "${GH_NAME}"
- git config --global user.email "${GH_EMAIL}"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- yarn && GIT_USER="${GH_NAME}" yarn deploy