https://github.com/teamcodestream/codestream-guide
https://github.com/teamcodestream/codestream-guide
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/teamcodestream/codestream-guide
- Owner: TeamCodeStream
- Created: 2020-04-09T15:31:07.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-11-10T02:52:50.000Z (over 2 years ago)
- Last Synced: 2023-03-05T04:28:23.685Z (over 2 years ago)
- Language: Shell
- Size: 78.7 MB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CodeStream User Guide
This repo is dedicated to the CodeStream User Guide which is one in a series of
similar docs sites across the CodeStream ecosystem.This site is statically generated with [Gatsby](https://www.gatsbyjs.org) using
themes created by the engineers of the [Apollo Data Graph
Platform](https://www.apollographql.com). These themes depend, in part, on
[Space Kit](https://space-kit.netlify.app).Gatsby is built on top of Node and React.
This site utilizes markdown and MDX for much of its content.
## Prerequisites
* Install either the CodeStream
[dev_tools](https://github.com/teamcodestream/dev_tools) tool kit or make sure
you have a recent version of [Node](https://nodejs.org). The dev_tools toolkit
will be needed if you plan to use the extended features for deployment and
builds.* Recommended VS Code extensions:
- ESLint
- Prettier
- MDX
- MDX Preview
- React Native Tools
- Rewrap## Installation
### With dev_tools
1. Install the sandbox with a default name of **csg**
```
$ dt-sb-new-sandbox -yCD -t csguide -n csg
```
1. Load your sandbox into the current shell.
```
$ dt-load csg
```
1. Create a playground file with the default name of **csg** for your sandbox
```
$ dt-sb-create-playground -t sandbox/playgrounds/default.template
```From this point forward, whenever you want to work on this project, simply load
the playground from a new shell with the command `dt-load-playground csg`.### Without dev_tools
_**NOTE: Documentation and features will be limited without dev_tools.**_
1. Clone the repo, install the node modules and add the npm bin directory to
your search path.
```
$ git clone https://github.com/teamcodestream/codestream-guide.git
$ cd codestream-guide/docs
$ npm install --no-save
$ export PATH=$PATH:node_modules/.bin
```## Running gatsby in development mode
All of your work should eventually land on the **develop** branch, which is the
default branch on the origin.1. Run gatsby in development mode from the **docs/** directory.
```
$ gatsby develop
```
1. Preview the site at http://localhost:8000## Consistent CodeStream Documentation Sites
In an effort to make consistent sites across all products in our platform, there
are some files and folders in the **docs/src/** that are meant to be shared.
Ultimately, it would be nice to package them in a codestream theme to be used on
top of the apollo themes but that will take some work.For now, they are:
```
docs/src/
|-- codestream-config.js # global codestream config data
|-- assets/codeStream/ # global codestream assets (icons, ...)
|-- components/ # component overrides
|-- gatsby-theme-apollo-core/ # component shadowning from Apollo core theme
|-- gatsby-theme-apollo-docs/ # component shadowning from Apollo docs theme
```
To create a tarball with these files, run `csg-make-cs-theme-pkg`## Other Resources
* [Gatsby Documentation](https://www.gatsbyjs.org/docs/)
* [Gatsby Apollo Core Theme](https://github.com/apollographql/gatsby-theme-apollo/tree/master/packages/gatsby-theme-apollo-core)
* [Gatsby Apollo Docs Theme](https://github.com/apollographql/gatsby-theme-apollo/tree/master/packages/gatsby-theme-apollo-docs)
* [Apollo's doc sites created with these themes](https://www.apollographql.com/docs/)
* [Space Kit Icons](https://space-kit.netlify.app/?path=/story/icons--default)