-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d91851a
commit fe4e608
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/out/ | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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?://)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
# docs.sourcegraph.com | ||
# Sourcegraph Docs | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sqs
Member
|
||
|
||
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.
Sorry, something went wrong.
sqs
Member
|
||
|
||
## 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 | ||
``` |
Lowercase the "D". We do not use title case anymore. See recent #design and sourcegraph/about#19 (soon to be merged).