-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from randombenj/feature/upload-and-help-page
Add upload and help page
- Loading branch information
Showing
17 changed files
with
529 additions
and
39 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
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
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,31 @@ | ||
## Getting started with DOCAT | ||
|
||
### Upload your documentation | ||
|
||
You can upload any static html site by zipping it and | ||
then posting the file to the backend. | ||
|
||
For example to upload the file `docs.zip` as version `1.0.0` for `awesome-project`. | ||
|
||
```sh | ||
curl -X POST -F "file=@docs.zip" http://localhost:8000/api/awesome-project/1.0.0 | ||
``` | ||
|
||
Any other file type is uploaded as well. | ||
An uploaded pdf could be viewed like this: | ||
|
||
`http://localhost/#/awesome-project/1.0.0/my_awesome.pdf` | ||
|
||
You can also manually upload your documentation. | ||
A very simple web form can be found under [upload](#/upload). | ||
|
||
### Tag documentation | ||
|
||
After this you can tag a version, this can be usefull when | ||
the latest version should be available as `http://localhost:5000/docs/awesome-project/latest` | ||
|
||
If you want to tag the version `1.0.0` as `latest` for awesome-project. | ||
|
||
```sh | ||
curl -X PUT http://localhost:5000/api/awesome-project/1.0.0/tags/latest | ||
``` |
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
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
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 @@ | ||
../../../doc/getting-started.md |
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,23 @@ | ||
<template> | ||
<vue-markdown> | ||
{{ help }} | ||
</vue-markdown> | ||
</template> | ||
|
||
<script> | ||
import VueMarkdown from 'vue-markdown' | ||
import help from '@/assets/getting-started.md' | ||
export default { | ||
name: 'help', | ||
components: { | ||
VueMarkdown | ||
}, | ||
data() { | ||
return { | ||
help, | ||
} | ||
} | ||
} | ||
</script> |
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
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
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,14 @@ | ||
<template> | ||
<md-button to="/upload" class="md-fab md-primary"> | ||
<md-icon>backup</md-icon> | ||
<md-tooltip md-direction="left">upload documentation</md-tooltip> | ||
</md-button> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'UploadButton' | ||
} | ||
</script> | ||
|
||
|
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
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,23 @@ | ||
<template> | ||
<div> | ||
<Layout> | ||
<Help class="spacing" /> | ||
</Layout> | ||
<UploadButton class="upload-button" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Layout from '@/components/Layout.vue' | ||
import Help from '@/components/Help.vue' | ||
import UploadButton from '@/components/UploadButton.vue' | ||
export default { | ||
name: 'help-page', | ||
components: { | ||
Layout, | ||
Help, | ||
UploadButton | ||
} | ||
} | ||
</script> |
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
Oops, something went wrong.