Have questions, feedback, or issues with the APIs available at developer.nrel.gov? Contact us or let us know in the issue tracker.
This repository stores the website content and documentation for developer.nrel.gov. Contributions are welcome. To submit a change, fork this repo, commit your changes, and send us a pull request.
The content files to edit are in ./source. To preview your changes you can use the Middleman preview server. To run Middleman:
-
Install Docker on your computer.
-
Checkout the
developer.nrel.govrepository on your computer (git clone https://github.com/NREL/developer.nrel.gov.git). -
For NREL employees on the NREL network: Add a
docker-compose.override.yml, with the following contents, but substitutingREPLACE_MEwith the appropriate URL (reach out to a maintainer for this value):services: web: build: args: NREL_ROOT_CERT_URL_ROOT: "REPLACE_ME"
-
Inside the
developer.nrel.govdirectory, rundocker compose up. -
View your changes at: http://localhost:4480/
If you're working on Swagger documentation, you can run rake lint locally to check for potential warnings or errors with the Swagger specification files.
- Changes committed to the
stagingbranch will automatically be deployed to the staging site. - Changes committed to the
masterbranch will automatically be deployed to the production site.
Deploys may take a few minutes after pushing before they show up. You can check the status via the Actions tab above.