The repo holds the source code for the SmartKids Docs. If you want to contribute to the docs, then you’re in the right place. If you just want to read the docs, then go to https://docs.smartkidsllc.com.
Open a terminal.
If you do not use the Nix package manager, then make sure that you have Corepack installed by running this command:
corepack --version
If that command displays a version number, then you’re good. If that command gives you an error, then you can get Corepack by installing Node.js.
Note: If you choose to install Node.js using a package manager, then be careful. Not all Node.js packages contain the corepack
command. For example, Homebrew’s node
package contains the node
command, but it does not contain the corepack
command. Homebrew users need to install Homebrew’s corepack
package in order to get the corepack
command.
Note: If you’re using Windows and you don’t already have Corepack, then you will need to close out of your terminal window and reopen it after everything has finished installing.
Make sure that you have a copy of this repo on your computer. If you aren’t sure how to do this, then please take a look at this guide.
Change directory into the root of the repo by running this command:
cd <path-to-smartkidsllc.github.io-repo>
Make sure that Corepack is enabled.
If you use the Nix package manager, then start a new development shell that has Corepack enabled by running this command:
nix \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
develop
If you do not use the Nix package manager, then ensure that Corepack is enabled by running this command:
corepack enable
That command may give you one of these two errors:
Internal Error: EACCES: permission denied…
Internal Error: EPERM: operation not permitted…
Make sure that all of the site’s dependencies are installed by running this command:
yarn
If you see a prompt that looks like this,
! Corepack is about to download https://repo.yarnpkg.com/4.4.0/packages/yarnpkg-cli/bin/yarn.js
? Do you want to continue? [Y/n]
then press Y followed by Enter.
Open a Web browser with a preview of what the site will look like by running this command:
yarn start
Once you’re done previewing the site, stop the development server by going back to your terminal and pressing Ctrl+C.
If you see a prompt that looks like this,
Terminate batch job (Y/N)?
then press N followed by Enter.
If you want to contribute to this repo, then please take a look at CONTRIBUTING.md
.
This repository is licensed under the MIT License. You are generally free to reuse or extend upon this code as you see fit; just include the original copy of the license.