Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Service to preview documentation from GitHub artifacts

License

NotificationsYou must be signed in to change notification settings

pandas-dev/github-doc-previewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web service that publishes a preview of a GitHub project documentation.

The documentation itself has to be built during the project continuousintegration and published as a GitHub actions artifact.

Then, the repository can be configured to request a preview whena comment/preview is written in the pull request page. The requestis made as en HTTP POST request, for example:

curl -X POST https://docs-previewer-server.com/preview/pandas-dev/pandas/56907/

This will cause the server to download the artifact and extract it, so it isavailable for example athttps://docs-previewer-server.com/previews/56907/

The server will automatically delete old previews.

Installation

A package is provided for Debian based systems. It can be installed withthe next command:

curl -sLO http://url/doc-previewer_0.1.0-1_amd64.deb \    && sudo dpkg -i doc-previewer_0.1.0-1_amd64.deb \    && rm doc-previewer_0.1.0-1_amd64.deb

To start the server:

nohub docs-previewer -c /path/to/config.toml > /path/to/log &

Configuration

A sample configuration file is next:

previews_path ="/var/doc-previewer"retention_days =14max_artifact_size =524288000[server]address ="0.0.0.0"port =8000publish_url ="https://doc-previewer.pydata.org/"[github]entrypoint ="https://api.github.com/repos/"token ="xxxxx"allowed_owners = ["pydata","pandas-dev" ][log]level ="info"format ="%a %{User-Agent}i"

All the fields are optional except for the GitHub token, which is required.

About

Service to preview documentation from GitHub artifacts

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp