Local copy
Local copy
Thank you for considering to contribute to cardano.org. To contribute, you must first install it locally. We have chosen Docusaurus, a modern static website generator, as the underlying software.
What you'll need
- Node.js version >= 18.0 (which can be checked by running
node -v). You can use nvm for managing multiple Node versions on a single machine installed. - Yarn version >= 1.22 (which can be checked by running
yarn --version). Yarn is a performant package manager for JavaScript and replaces thenpmclient. It is not strictly necessary but highly encouraged. - On macOS you also need Xcode and Command Line Tools.
Local development
To get a local development environment, clone the repository, navigate into the cardano-org folder, install dependencies, and start the development server. Most changes are reflected live without having to restart the server. By default, a browser window will open at http://localhost:3000.
git clone --depth 1 https://github.com/cardano-foundation/cardano-org.git
cd cardano-org
yarn install
yarn start
Open docs/index.md (this page) and edit some lines: the site reloads automatically and displays your changes http://localhost:3000/docs/ in the moment you save your file.
Folder structure
The site is structured as follows. (See the Folder structure rundown below for details)
cardano-org
├── blog
│ ├── 2024-02-14-plutus-v3-on-testnet
│ ├── ...
│ └── authors.yml
├── build
│ └── ...
├── docs
│ ├── index.md (this page)
│ └── ...
├── src
│ ├── components
│ │ └── ...
│ ├── css
│ │ └── custom.css
│ ├── data
│ │ ├── ambassadorsData.json
│ │ ├── delegationFAQ.json
│ │ ├── logosCompanies.json
│ │ ├── operationFAQ.json
│ │ ├── pineappleFAQ.json
│ │ └── termsForTermExplainer.json
│ └── pages
│ ├── ambassadors.js