mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Previously 'skillshare init --git-root <scope>' on an already-initialized setup either errored with 'already initialized' (no --remote) or warned and ignored the flag (with --remote), so there was no non-interactive way to change the scope after init — only the web UI or a manual config edit. handleExistingInit now treats 'init --git-root <scope>' (without --remote) as a headless scope switch via switchGitRootScope: it inits a repo at the new scope directory (reusing one already there, sharing doGitInitIfAbsent with the fresh-init and server paths) and persists git_root. It does not relocate an existing repo — switching scope means 'version a different directory', not 'move history'. Combined with --remote the flag still falls through to the remote path, now pointing users at the standalone form instead of a bare 'ignored' warning. Update the mismatch guidance to offer 'skillshare init --git-root <scope>' as the first fix, and revise the git_root docs (configuration + init) to document the headless switch, superseding the earlier 'must re-run init / not supported' wording. Add TestGitRoot_SwitchScopeAfterInit.
Website
Documentation site for skillshare, built with Docusaurus.
Install
npm install
Local Development
npm start
Quality Checks
npm run typecheck
npm run clear
Build and Preview
npm run build
npm run serve
Deployment
npm run deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.