 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func NewRenderContextRepoComment(ctx context.Context, repo *repo_model.Repository, opts ...RepoCommentOptions) *markup.RenderContext
- func NewRenderContextRepoFile(ctx context.Context, repo *repo_model.Repository, opts ...RepoFileOptions) *markup.RenderContext
- func NewRenderContextRepoWiki(ctx context.Context, repo *repo_model.Repository, opts ...RepoWikiOptions) *markup.RenderContext
- func NewRenderContextSimpleDocument(ctx context.Context, baseLink string) *markup.RenderContext
- type RepoComment
- type RepoCommentOptions
- type RepoFile
- type RepoFileOptions
- type RepoWiki
- type RepoWikiOptions
- type SimpleDocument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRenderContextRepoComment ¶
func NewRenderContextRepoComment(ctx context.Context, repo *repo_model.Repository, opts ...RepoCommentOptions) *markup.RenderContext
func NewRenderContextRepoFile ¶
func NewRenderContextRepoFile(ctx context.Context, repo *repo_model.Repository, opts ...RepoFileOptions) *markup.RenderContext
func NewRenderContextRepoWiki ¶
func NewRenderContextRepoWiki(ctx context.Context, repo *repo_model.Repository, opts ...RepoWikiOptions) *markup.RenderContext
func NewRenderContextSimpleDocument ¶
func NewRenderContextSimpleDocument(ctx context.Context, baseLink string) *markup.RenderContext
Types ¶
type RepoComment ¶
type RepoComment struct {
	// contains filtered or unexported fields
}
    func (*RepoComment) CleanUp ¶
func (r *RepoComment) CleanUp()
func (*RepoComment) IsCommitIDExisting ¶
func (r *RepoComment) IsCommitIDExisting(commitID string) bool
func (*RepoComment) ResolveLink ¶
func (r *RepoComment) ResolveLink(link, preferLinkType string) string
type RepoCommentOptions ¶
type RepoCommentOptions struct {
	DeprecatedRepoName  string // it is only a patch for the non-standard "markup" api
	DeprecatedOwnerName string // it is only a patch for the non-standard "markup" api
	CurrentRefPath      string // eg: "branch/main" or "commit/11223344"
	FootnoteContextID   string // the extra context ID for footnotes, used to avoid conflicts with other footnotes in the same page
}
    type RepoFile ¶
type RepoFile struct {
	// contains filtered or unexported fields
}
    func (*RepoFile) IsCommitIDExisting ¶
func (*RepoFile) ResolveLink ¶
type RepoFileOptions ¶
type RepoWiki ¶
type RepoWiki struct {
	// contains filtered or unexported fields
}
    func (*RepoWiki) IsCommitIDExisting ¶
func (*RepoWiki) ResolveLink ¶
type RepoWikiOptions ¶
type SimpleDocument ¶
type SimpleDocument struct {
	*markup.SimpleRenderHelper
	// contains filtered or unexported fields
}
    func (*SimpleDocument) ResolveLink ¶
func (r *SimpleDocument) ResolveLink(link, preferLinkType string) string
 Click to show internal directories. 
   Click to hide internal directories.