Skip to content

Commit

Permalink
Markdown rendering overhaul (#186)
Browse files Browse the repository at this point in the history
* Markdown rendering overhaul

Cleaned up and squashed commits into single one.

Signed-off-by: Andrew Boyarshin <[email protected]>

* Fix markdown API, add markdown module and API tests, improve code coverage

Signed-off-by: Andrew Boyarshin <[email protected]>
  • Loading branch information
andrew-boyarshin authored and lunny committed Feb 14, 2017
1 parent 5cc275b commit dc8248f
Show file tree
Hide file tree
Showing 13 changed files with 1,374 additions and 187 deletions.
5 changes: 5 additions & 0 deletions cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ func runWeb(ctx *cli.Context) error {
}, reqSignIn, reqRepoWriter)
}, repo.MustEnableWiki, context.RepoRef())

m.Group("/wiki", func() {
m.Get("/raw/*", repo.WikiRaw)
m.Get("/*", repo.WikiRaw)
}, repo.MustEnableWiki)

m.Get("/archive/*", repo.Download)

m.Group("/pulls/:index", func() {
Expand Down
Loading

0 comments on commit dc8248f

Please sign in to comment.