mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 19:16:23 +00:00
feat: docs
This commit is contained in:
parent
9490d4d57c
commit
baec1f93d0
5 changed files with 32 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -50,3 +50,5 @@ yarn-debug.log*
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
/.task
|
/.task
|
||||||
|
/.yardoc
|
||||||
|
/public/doc/
|
||||||
|
|
1
Gemfile
1
Gemfile
|
@ -116,6 +116,7 @@ group :development, :test do
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
|
gem 'yard'
|
||||||
gem 'brakeman'
|
gem 'brakeman'
|
||||||
gem 'haml-lint', require: false
|
gem 'haml-lint', require: false
|
||||||
gem 'letter_opener'
|
gem 'letter_opener'
|
||||||
|
|
|
@ -574,6 +574,7 @@ GEM
|
||||||
websocket-extensions (0.1.5)
|
websocket-extensions (0.1.5)
|
||||||
xpath (3.2.0)
|
xpath (3.2.0)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
|
yard (0.9.34)
|
||||||
zeitwerk (2.6.8)
|
zeitwerk (2.6.8)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
|
@ -669,6 +670,7 @@ DEPENDENCIES
|
||||||
web-console
|
web-console
|
||||||
webpacker
|
webpacker
|
||||||
yaml_db!
|
yaml_db!
|
||||||
|
yard
|
||||||
|
|
||||||
RUBY VERSION
|
RUBY VERSION
|
||||||
ruby 3.1.4p223
|
ruby 3.1.4p223
|
||||||
|
|
21
README.md
21
README.md
|
@ -28,6 +28,16 @@ instalación (en inglés)](https://taskfile.dev/installation/)
|
||||||
go-task
|
go-task
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Documentación
|
||||||
|
|
||||||
|
Para navegar la documentación del código usando YARD:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go-task doc serve
|
||||||
|
```
|
||||||
|
|
||||||
|
Y luego navegar a <https://panel.sutty.local:3000/doc/>
|
||||||
|
|
||||||
## English
|
## English
|
||||||
|
|
||||||
Sutty is a platform for hosting safer, faster and more resilient
|
Sutty is a platform for hosting safer, faster and more resilient
|
||||||
|
@ -51,3 +61,14 @@ instructions](https://taskfile.dev/installation/).
|
||||||
```bash
|
```bash
|
||||||
go-task
|
go-task
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
To browse documentation using YARD:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go-task doc serve
|
||||||
|
```
|
||||||
|
|
||||||
|
And then open <https://panel.sutty.local:3000/doc/>
|
||||||
|
|
||||||
|
|
|
@ -114,3 +114,9 @@ tasks:
|
||||||
status:
|
status:
|
||||||
- "test -f tmp/pids/server.pid"
|
- "test -f tmp/pids/server.pid"
|
||||||
- "pgrep -F tmp/pids/server.pid"
|
- "pgrep -F tmp/pids/server.pid"
|
||||||
|
doc:
|
||||||
|
desc: "Build documentation"
|
||||||
|
deps:
|
||||||
|
- "gems"
|
||||||
|
cmds:
|
||||||
|
- "{{.HAINISH}} bundle exec yardoc -o public/doc app lib config db"
|
||||||
|
|
Loading…
Reference in a new issue