Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 3m19s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 4m39s
Build and Release / Lint (push) Successful in 4m46s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Add API.md (3200+ lines) with complete REST API documentation covering authentication, repository management, issues, pull requests, organizations, package registry, Actions, and Vault APIs. Includes code examples and error handling. Add GUIDE.md with user-focused documentation for getting started, repository operations, collaboration workflows, and CI/CD setup. Implement documentation tab in repository view with automatic detection and rendering of API.md and GUIDE.md files alongside README. Add locale strings and template for doc tab navigation.
28 lines
893 B
Handlebars
28 lines
893 B
Handlebars
<div class="file-view code-view">
|
|
<div class="file-header tw-flex tw-items-center tw-justify-between">
|
|
<div class="file-header-left tw-flex tw-items-center">
|
|
{{svg .Icon 18 "tw-mr-2"}}
|
|
<strong>{{.FileName}}</strong>
|
|
</div>
|
|
<div class="file-header-right">
|
|
<a class="ui basic tiny button" href="{{.ctxData.RepoLink}}/src/{{.ctxData.RefTypeNameSubURL}}/{{.FileName}}">
|
|
{{svg "octicon-file" 14}} {{ctx.Locale.Tr "repo.view_file"}}
|
|
</a>
|
|
<a class="ui basic tiny button" href="{{.ctxData.RepoLink}}/raw/{{.ctxData.RefTypeNameSubURL}}/{{.FileName}}">
|
|
{{svg "octicon-code" 14}} {{ctx.Locale.Tr "repo.file_raw"}}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="file-body tw-p-4 tw-text-base">
|
|
{{if .IsMarkdown}}
|
|
<div class="markup markdown">
|
|
{{.Content}}
|
|
</div>
|
|
{{else}}
|
|
<div class="file-content plain-text">
|
|
<pre>{{.Content}}</pre>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|