-
Notifications
You must be signed in to change notification settings - Fork 235
Building on Ubuntu
Josh Heyer edited this page Jan 12, 2021
·
3 revisions
We strongly recommend Ubuntu 20.04 (Focal Fossa) or later; updating Python is annoying. For more details on configuring sources and working with docs, please refer to the README
- Install Git
sudo apt install git
- Clone repo
git clone https://github.com/EnterpriseDB/docs.git ~/git/docs
- If running Ubuntu 19 or later, you'll already have a sufficiently new version of Python! If older Ubuntu, get Python 3.6 or higher.
- Install nvm
(see https://github.com/nvm-sh/nvm for details)
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
- Close and reopen terminal
- Change CWD to the location where you cloned the docs repo in step #2
cd ~/git/docs
- Use nvm to install the version of NodeJS required by the repo
nvm install
- Use npm to install gatsby and yarn
npm i -g gatsby-cli npm i -g yarn
- Use yarn to install required packages
yarn
- Pull down shared icon files
git submodule update --init
- Select sources: you can choose none, or many by typing the ID of the sources separated by commas when prompted. For example,
1d,1l
to select EPAS and PEMyarn config-sources
- Pull the sources selected in step #12
(respond with
yarn pull-sources
y
when prompted) Re-run this command at any time to build the latest sources. For product docs, rungit pull
- Build and run!
yarn develop