Skip to content

Commit

Permalink
Added a Makefile for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-blunden committed Oct 16, 2018
1 parent d91851a commit fe4e608
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/out/
.idea
.DS_Store
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DOCS=../sourcegraph/doc

install-docsite:
GO111MODULE=on go get github.com/sourcegraph/docsite/cmd/docsite

server:
docsite -assets assets -sources $(DOCS) -templates templates serve

check:
docsite -assets assets -sources $(DOCS) -templates templates check -skip-urls '(^#|^https?://)'
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# docs.sourcegraph.com
# Sourcegraph Docs

This comment has been minimized.

Copy link
@sqs

sqs Oct 16, 2018

Member

Lowercase the "D". We do not use title case anymore. See recent #design and sourcegraph/about#19 (soon to be merged).

This comment has been minimized.

Copy link
@sqs

sqs Oct 16, 2018

Member

Also, I wanted to avoid calling it "Sourcegraph docs" because it does not actually contain the docs (see the next paragraph). I will find another name.


The templates and assets for [docs.sourcegraph.com](https://docs.sourcegraph.com). The actual documentation content lives in [sourcegraph/sourcegraph@`docs`](https://github.com/sourcegraph/sourcegraph/tree/docs/doc) (will be merged to `master` soon).

## Requirements

- Golang 1.11

This comment has been minimized.

Copy link
@sqs

sqs Oct 16, 2018

Member

Call it "Go", not "Golang". If you call it "Golang", it makes it seem as though you are not familiar with the language. See https://www.reddit.com/r/golang/comments/30wsrs/the_name_of_our_language_is_go/.


## Usage

Install `docsite`:
This uses [docsite](https://github.com/sourcegraph/docsite) which you can install by running:

```shell
go get github.com/sourcegraph/docsite/cmd/docsite
make install-docsite
```

The following commands assume that you are in this repository's top-level directory and that [sourcegraph/sourcegraph@`docs`](https://github.com/sourcegraph/sourcegraph/tree/docs) is checked out at `../sourcegraph`.

To run an HTTP server for this site:

```shell
docsite -assets assets -sources ../sourcegraph/doc -templates templates serve
make server
```

To check for common problems in the Markdown and template files:

```shell
docsite -assets assets -sources ../sourcegraph/doc -templates templates check -skip-urls '(^#|^https?://)'
make check
```

0 comments on commit fe4e608

Please sign in to comment.