From e98c5f002de86058b6dfd30b81675ce10e095a25 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Tue, 21 May 2019 09:17:55 -0700 Subject: [PATCH] remove remnants of old /public/doc/ documentation --- .gitignore | 2 -- Makefile | 11 +---------- docs/modules/Conch::Route.md | 4 ---- lib/Conch/Route.pm | 11 ----------- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 463a14b6b..f0599da62 100644 --- a/.gitignore +++ b/.gitignore @@ -18,8 +18,6 @@ CHANGELOG.md # Conch conch.conf report -public/doc -docs/conch-api/index.html log bin/hypnotoad.pid nytprof diff --git a/Makefile b/Makefile index 8ea7aeec1..717cd34f9 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ morbo: ## Run under morbo, listening on :5001 build: local ## Install deps (TODO: and build docs) clean: - \rm -rf local log public/doc + \rm -rf local log local: cpanfile.snapshot ## Install perl dependencies # '--deployment' installs the same dep versions that are in the lockfile @@ -25,21 +25,12 @@ test: local ## Run tests test_loud: local ## Run tests but tell the Mojo harness to log verbosely to log/ MOJO_LOG_LEVEL=debug carton exec prove -lpr t/ -doc: public/doc/index.html ## Build docs - .PHONY: ghdocs ghdocs: build @rm -rf docs/modules @mkdir -p docs/modules @carton exec misc/pod2githubpages $$(find lib -type f -iname \*.pm) -public/doc/index.html: \ - docs/conch-api/openapi-spec.yaml \ - docs/conch-api/yarn.lock docs/conch-api/index.js - @cd docs/conch-api && yarn install && yarn run render - @mkdir -p public/doc - @cp docs/conch-api/index.html public/doc/index.html - watch-test: @find lib t | entr -r -c make test diff --git a/docs/modules/Conch::Route.md b/docs/modules/Conch::Route.md index a6db95cda..b5a2b63b7 100644 --- a/docs/modules/Conch::Route.md +++ b/docs/modules/Conch::Route.md @@ -14,10 +14,6 @@ Set up the full route structure Unless otherwise specified all routes require authentication. -### `/doc` - -- Does not require authentication. - ### `GET /ping` - Does not require authentication. diff --git a/lib/Conch/Route.pm b/lib/Conch/Route.pm index 859eef7de..568c4d390 100644 --- a/lib/Conch/Route.pm +++ b/lib/Conch/Route.pm @@ -55,9 +55,6 @@ sub all_routes ( $root->add_type(uuid => Conch::UUID::UUID_FORMAT); - # GET /doc - $root->get('/doc', sub ($c) { $c->reply->static('public/doc/index.html') }); - # GET /ping $root->get('/ping', sub ($c) { $c->status(200, { status => 'ok' }) }); @@ -108,14 +105,6 @@ __END__ Unless otherwise specified all routes require authentication. -=head3 C - -=over 4 - -=item * Does not require authentication. - -=back - =head3 C =over 4