-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added docs using slate #1
Conversation
Noting that the code of conduct should use our standard text/approach, rather than slate's. See oss-dashboard's CONTRIBUTING file ( https://github.com/amzn/oss-dashboard/ ). |
docs/LICENSE
Outdated
@@ -0,0 +1,13 @@ | |||
Copyright 2008-2013 Concur Technologies, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a source header and not a license file.
Are Concur the author of Slate? ie: It's injecting its license into its output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe they are. I'm new to open source -- is it ok to remove the docs/LICENSE file? Almost everything inside docs/* is cloned from the slate github repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
Please delete the .DS_Store files and the logo-old.png file.
The content lives in a separate branch?
docs/README.md
Outdated
Features | ||
------------ | ||
|
||
* **Clean, intuitive design** — With Slate, the description of your API is on the left side of your documentation, and all the code examples are on the right side. Inspired by [Stripe's](https://stripe.com/docs/api) and [Paypal's](https://developer.paypal.com/webapps/developer/docs/api/) API docs. Slate is responsive, so it looks great on tablets, phones, and even in print. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's drop Slate's marketing copy from this file.
Makefile
Outdated
@@ -30,6 +30,21 @@ setup: | |||
GOPATH=$(CURDIR)/_tools go install github.com/twitchtv/retool/... | |||
$(RETOOL) build | |||
|
|||
# Make commands for twirp docs | |||
setup_docs: | |||
echo "Ruby >= 2.3.1 must be installed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use @echo "Ruby >= 2.3.1 must be installed"
here. Without a leading @
, Make will print the line, so you'll double-echo.
docs/CHANGELOG.md
Outdated
@@ -0,0 +1,117 @@ | |||
# Changelog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Slate's changelog? Let's remove it.
docs/CODE_OF_CONDUCT.md
Outdated
@@ -0,0 +1,46 @@ | |||
# Contributor Covenant Code of Conduct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is slate's, so we should remove it, too.
We might want one for the repo root, but let's do that separately.
docs/README.md
Outdated
4. Initialize and start Slate. You can either do this locally, or with Vagrant: | ||
|
||
```shell | ||
# either run this to run locally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, let's recommend the make dev_docs
command.
> Install the Twirp compiler plugin `protoc-gen-twirp`: | ||
|
||
```bash | ||
$ go get -u code.justin.tv/common/twirp/protoc-gen-twirp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to github.com/twitchtv/twirp/protoc-gen-twirp
docs/source/includes/_updating.md
Outdated
> If you are using [retool](https://github.com/twitchtv/retool), update using the following command: | ||
|
||
```bash | ||
$ retool upgrade code.justin.tv/common/twirp/protoc-gen-twirp v4.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to github.com/twitchtv/twirp/protoc-gen-twirp
docs/source/includes/_updating.md
Outdated
$ retool upgrade code.justin.tv/common/twirp/protoc-gen-twirp v4.4.0 | ||
``` | ||
|
||
Twirp releases are tagged with semantic versioning and releases are managed by Github. See the [releases](https://git-aws.internal.justin.tv/common/twirp/releases) page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to public URL
docs/source/includes/_updating.md
Outdated
> Use `go install` to update twirp if you don't have retool: | ||
|
||
```golang | ||
$ cd $GOPATH/src/code.justin.tv/common/twirp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be public path
docs/source/includes/_updating.md
Outdated
|
||
```golang | ||
$ cd $GOPATH/src/code.justin.tv/common/twirp | ||
$ git checkout v4.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're on v5.0.0
with the open source release, please update this line
8ce78a0
to
a8e11ba
Compare
cd docs && bundle exec middleman build --clean | ||
|
||
publish_docs: build_docs | ||
git add docs/build && git push origin `git subtree split --prefix docs/build`:gh-pages --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to get 👀 on this command. It builds the html files, then automatically pushes them to the gh-pages
branch of whichever fork/repo you are working on. Is there a better way of doing this (a way to review the outgoing changes to the docs/build
folder on github before they are pushed to gh-pages
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs/build
folder will just hold the built HTML documents, we can still review the source, right?
It would be nice if we could push a preview, yes. I don't know that GH pages has the flexibility to allow it, though. This might be the best we'll get within github pages.
Slate really is kind of a pain to work with. Let's follow github.com/golang/dep's lead and use http://docusaurus.io/. I like the way the docs look and I especially like how simple it is. |
RMRF-263: twirp streams POC Approved-by: Kaushik Sahoo <kaushik@gnarbox.com> Approved-by: Robert Weber <robertweber95@gmail.com> Approved-by: David Manpearl <dmanpearl@pixelmonks.com> Approved-by: Ben Balaran <ben@gnarbox.com>
allow chaining multiple ClientHooks
capture call stack for panics
Added docs using slate docs. Added make commands to automatically setup/dev/build/publish docs to gh-pages. Slate requires ruby >= 2.3.1.
TODO: