diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 4d310d0..0e3fceb 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -3,136 +3,135 @@ const darkCodeTheme = require('prism-react-renderer/themes/vsDark'); // With JSDoc @type annotations, IDEs can provide config autocompletion /** @type {import('@docusaurus/types').DocusaurusConfig} */ -( - module.exports = { - title: 'DStack', - tagline: - 'Technology stack as a library for developing semi-decentralized web applications', - url: 'https://dstack.0x77.dev', - baseUrl: '/', - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', - favicon: 'img/favicon.ico', - organizationName: '0x77dev', - projectName: 'dstack', +module.exports = { + title: 'DStack', + tagline: + 'Technology stack as a library for developing semi-decentralized web applications', + url: 'https://dstack.0x77.dev', + baseUrl: '/', + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'warn', + favicon: 'img/favicon.ico', + organizationName: '0x77dev', + projectName: 'dstack', - plugins: [ - [ - 'docusaurus-plugin-typedoc', - { - entryPoints: ['../packages/lib'], - entryPointStrategy: 'packages', - sidebar: { - fullNames: true, - }, + plugins: [ + [ + 'docusaurus-plugin-typedoc', + { + id: 'lib', + entryPoints: ['..'], + entryPointStrategy: 'packages', + sidebar: { + fullNames: true, }, - ], - ], - - presets: [ - [ - '@docusaurus/preset-classic', - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: { - sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/dstack-js/dstack/edit/main/docs/', - }, - blog: { - showReadingTime: true, - editUrl: 'https://github.com/dstack-js/dstack/edit/main/docs/blog/', - }, - theme: { - customCss: require.resolve('./src/css/custom.css'), - }, - }), - ], + }, ], + ], - themeConfig: - /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ + presets: [ + [ + '@docusaurus/preset-classic', + /** @type {import('@docusaurus/preset-classic').Options} */ ({ - // algolia: { - // apiKey: '6407ba8e951f3066d9d6761b7959174e', - // indexName: 'dstack', - // appId: 'C0HURB3Q6E', - // contextualSearch: true, - // }, - colorMode: { - defaultMode: 'dark', - disableSwitch: true, - respectPrefersColorScheme: true, - }, - navbar: { - title: 'DStack', - logo: { - alt: 'DStack Logo', - src: 'img/logo.svg', - }, - items: [ - { - type: 'doc', - docId: 'intro', - position: 'left', - label: 'Documentation', - }, - { to: '/blog', label: 'Blog', position: 'left' }, - { - href: 'https://github.com/dstack-js/dstack', - label: 'GitHub', - position: 'right', - }, - ], + docs: { + sidebarPath: require.resolve('./sidebars.js'), + editUrl: 'https://github.com/dstack-js/dstack/edit/main/docs/', }, - footer: { - style: 'dark', - links: [ - { - title: 'Docs', - items: [ - { - label: 'Tutorial', - to: '/docs/intro', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'NPM', - href: 'https://www.npmjs.com/org/dstack-js', - }, - { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/dstack', - }, - { - label: 'Discord', - href: 'https://discord.link/dstack', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: '/blog', - }, - { - label: 'GitHub', - href: 'https://github.com/dstack-js/dstack', - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} DStack Contributors`, + blog: { + showReadingTime: true, + editUrl: 'https://github.com/dstack-js/dstack/edit/main/docs/blog/', }, - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, + theme: { + customCss: require.resolve('./src/css/custom.css'), }, }), - } -); + ], + ], + + themeConfig: + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ + ({ + // algolia: { + // apiKey: '6407ba8e951f3066d9d6761b7959174e', + // indexName: 'dstack', + // appId: 'C0HURB3Q6E', + // contextualSearch: true, + // }, + colorMode: { + defaultMode: 'dark', + disableSwitch: true, + respectPrefersColorScheme: true, + }, + navbar: { + title: 'DStack', + logo: { + alt: 'DStack Logo', + src: 'img/logo.svg', + }, + items: [ + { + type: 'doc', + docId: 'intro', + position: 'left', + label: 'Documentation', + }, + { to: '/blog', label: 'Blog', position: 'left' }, + { + href: 'https://github.com/dstack-js/dstack', + label: 'GitHub', + position: 'right', + }, + ], + }, + footer: { + style: 'dark', + links: [ + { + title: 'Docs', + items: [ + { + label: 'Tutorial', + to: '/docs/intro', + }, + ], + }, + { + title: 'Community', + items: [ + { + label: 'NPM', + href: 'https://www.npmjs.com/org/dstack-js', + }, + { + label: 'Stack Overflow', + href: 'https://stackoverflow.com/questions/tagged/dstack', + }, + { + label: 'Discord', + href: 'https://discord.link/dstack', + }, + ], + }, + { + title: 'More', + items: [ + { + label: 'Blog', + to: '/blog', + }, + { + label: 'GitHub', + href: 'https://github.com/dstack-js/dstack', + }, + ], + }, + ], + copyright: `Copyright © ${new Date().getFullYear()} DStack Contributors`, + }, + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + }, + }), +}; diff --git a/nx.json b/nx.json index 568356a..cd7d16c 100644 --- a/nx.json +++ b/nx.json @@ -9,14 +9,15 @@ }, "tasksRunnerOptions": { "default": { - "runner": "@nrwl/workspace/tasks-runners/default", + "runner": "@nrwl/nx-cloud", "options": { "cacheableOperations": [ "build", "lint", "test", "e2e" - ] + ], + "accessToken": "MjBiYTU3ODktZDVlZC00MmNkLWI2YmQtNmNlNDIwOWY3ZDU1fHJlYWQtd3JpdGU=" } } } diff --git a/package.json b/package.json index cf352db..4c7c97f 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@nrwl/jest": "13.4.4", "@nrwl/js": "13.4.4", "@nrwl/linter": "13.4.4", + "@nrwl/nx-cloud": "^13.1.2", "@nrwl/tao": "13.4.4", "@nrwl/workspace": "13.4.4", "@types/jest": "27.0.2", diff --git a/yarn.lock b/yarn.lock index 956f33e..94fd2f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3694,6 +3694,18 @@ tmp "~0.2.1" tslib "^2.3.0" +"@nrwl/nx-cloud@^13.1.2": + version "13.1.2" + resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-13.1.2.tgz#5715bd571d883f48b34354468265e723cc41cb6d" + integrity sha512-0MzPYtnt63ZoiWCN6B4zpDprkM+/+/opGV1g8evXb5GbMpLQIeAkyABt49RlNuBPhhmUUYvte4WwyzEmyWZSRQ== + dependencies: + axios "^0.21.1" + chalk "4.1.0" + node-machine-id "^1.1.12" + rxjs "6.5.5" + strip-json-comments "^3.1.1" + tar "6.1.11" + "@nrwl/tao@13.4.4": version "13.4.4" resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-13.4.4.tgz#aa392332e8ee7147a51fb8420c734aba47875717" @@ -14482,6 +14494,11 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= +node-machine-id@^1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/node-machine-id/-/node-machine-id-1.1.12.tgz#37904eee1e59b320bb9c5d6c0a59f3b469cb6267" + integrity sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ== + node-pre-gyp@^0.13.0: version "0.13.0" resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.13.0.tgz#df9ab7b68dd6498137717838e4f92a33fc9daa42" @@ -17286,6 +17303,13 @@ rxjs-for-await@0.0.2: resolved "https://registry.yarnpkg.com/rxjs-for-await/-/rxjs-for-await-0.0.2.tgz#26598a1d6167147cc192172970e7eed4e620384b" integrity sha512-IJ8R/ZCFMHOcDIqoABs82jal00VrZx8Xkgfe7TOKoaRPAW5nH/VFlG23bXpeGdrmtqI9UobFPgUKgCuFc7Lncw== +rxjs@6.5.5: + version "6.5.5" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec" + integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ== + dependencies: + tslib "^1.9.0" + rxjs@^6.5.4, rxjs@^6.6.0, rxjs@^6.6.3: version "6.6.7" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" @@ -18442,6 +18466,18 @@ tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== +tar@6.1.11, tar@^6.0.2, tar@^6.1.0: + version "6.1.11" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" + integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^3.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + tar@^4, tar@^4.4.12: version "4.4.19" resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.19.tgz#2e4d7263df26f2b914dee10c825ab132123742f3" @@ -18455,18 +18491,6 @@ tar@^4, tar@^4.4.12: safe-buffer "^5.2.1" yallist "^3.1.1" -tar@^6.0.2, tar@^6.1.0: - version "6.1.11" - resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" - integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== - dependencies: - chownr "^2.0.0" - fs-minipass "^2.0.0" - minipass "^3.0.0" - minizlib "^2.1.1" - mkdirp "^1.0.3" - yallist "^4.0.0" - tdigest@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/tdigest/-/tdigest-0.1.1.tgz#2e3cb2c39ea449e55d1e6cd91117accca4588021"