10000 GitHub - ergestnako/developers.sparkpost.com: SparkPost Developer Site and Documentation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ergestnako/developers.sparkpost.com

 
 

Repository files navigation

developers.sparkpost.com

This repo contains the code and documentation that powers developers.sparkpost.com.

Get started

Requirements

To develop with this repository, you must have the following:

  1. Git
  2. Node
  3. npm: version 6 recommended
  4. A clone of this repo

Installing dependencies

  1. cd developers.sparkpost.com to go into the website directory
  2. Run npm run bootstrap to install the npm dependencies

Local development

When developing locally, you have two options: developing the whole website or develop just the API reference section. All content will hot-reload. If you aren't seeing changes, restart the development server.

Develop the website

This will develop the whole developer site.

  1. Run npm run develop
  2. open http://localhost:4000/ to view the website.

Develop API reference

This is what you want if you are making documentation changes.

This will only develop the API reference pages and skip unnecessary queries.

  1. You will need a SparkPost API key to generate the docs
  2. Run SPARKPOST_API_KEY=<key> npm run docs
  3. open http://localhost:4000/api/ to view the docs.

Develop Netlify Lambda Functions

To develop Netlify Functions locally, run npm run lambda. This will start a second development server for the serverless functions.

Each file located in the lambda/ directory will be deployed as a serverless function.

Contributing

You'll find the all the content, pages, and data inside the content folder. If you are contributing content, take a few minutes and read through the contributing guidelines.

Create a branch

Create a branch for your work in the repo:

  1. git checkout master to checkout the main branch
  2. git pull origin master to get the lastest code
  3. git checkout -b your-branch-name to create a branch

Make your changes

  1. Follow the Local development instructions to start the development server
  2. Make your changes as needed
  3. Changes to any files in the content and src directories will hot-reload.
  4. If you make changes files in the plugins and gatsby directories or any top-level files, you will need to restart the server.

Push your changes

  1. Stage and commit your changes (git add -A && git commit -m "Describe what you did")
  2. Push your changes (git push origin your-branch-name)
  3. Create a Pull Request against the master branch. Netlify will publish a deploy preview so you can share and preview your changes as a live site.

After you push your changes, you may see a commit you didn't make such as your-branch-name npm audit fix. We use auditmated to help keep our dependencies secure and up-to-date. To skip this, use the --no-verify command line option when you push your code.

About

SparkPost Developer Site and Documentation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • API Blueprint 68.3%
  • JavaScript 31.5%
  • CSS 0.2%
0