Giter VIP home page Giter VIP logo

docs.wpgraphql.com's Introduction

Logo

WPGraphQL Documentation Site

docs.wpgraphql.com โ€ข Join Slack

This repository contains the content and Gatsby site for the docs.wpgraphql.com site.

Netlify Status

Gatsby

This site is built using Gatsby.

Contributing

The content of this site is all contained in .mdx (Markdown + JSX) files within the repository, so to contribute new content, help fix typos, etc, you can make a pull request to this repo.

Updating Content

If you need to update existing content, you can find the content of the site within the /src/content directory. There are sub-directories each containing relevant .mdx files. Edit the content of the page you would like to change, then open a Pull Request to this repo with your changes.

Creating New Pages

If you would like to create a new page on the site, create a new .mdx page in the appropriate sub-directory of the /src/content directory.

Add some frontmatter at the top of the file including at least a title and description.

For example:

---
title: Name of new page
description: Very brief of the pages purpose
---

Then write the content of the page using Markdown and supported JSX components (see below)

Add the new page to the navigation

The navigation is controlled by the /src/content/nav.yml file. Add your page to the nav.yml file in a logical place within the hierarchy, and make sure to include both an id and tite. The id should match the file name. So if you created new-page.mdx, then the id should be new-page. The title should be the text that should show in the menu for users to navigate to the page.

Running the site Locally

It's not necessary to run the site locally to contribute, but if you would like to get it up and running on your machine, below are instructions for running the WPGraphQL Docs site locally.

  • Make sure you have node installed on your machine
  • Make sure you have Gatsby CLI installed. You can install with the following command: npm i -g gatsby-cli
  • Clone this repo
  • Navigate to the cloned repo directory. ex: cd /path/to/docs.wpgraphql.com
  • Within that directory, create a file named: .env.development
    • Create a Github Token
    • Add the token to .env.development file like so: GITHUB_TOKEN=123456 (replacing 123456 with your token)
  • Using the command line, run the command npm install to install dependencies
  • Using the command line, run the command gatsby develop to start the site

docs.wpgraphql.com's People

Contributors

jasonbahl avatar hughdevore avatar betweenbrain avatar jmau111 avatar kidunot89 avatar pristas-peter avatar radovanx avatar codeprokid avatar paulgrieselhuber avatar 19h47 avatar manzoorwanijk avatar k0d3d avatar m-allanson avatar paulbremer avatar salcode avatar saulirajala avatar thakkaryash94 avatar stefanos82 avatar joseffb-mla avatar jacobarriola avatar ocean90 avatar craigmcnamara avatar baronvonperko avatar chrisgibbs44 avatar chasen avatar benallfree avatar andrewminion-luminfire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.