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

License

NotificationsYou must be signed in to change notification settings

gitbucket/gitbucket-pages-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This plugin providesProject Pages functionality forGitBucket based repositories.

User guide

This plugin serves static files directly from one of the followingplaces:

  • gb-pages branch (with fallback togh-pages to be compatible withgithub, this is the default)
  • master branch
  • docs folder undermaster branch

Quick start

  • create a directory or branch if necessary (eg. create an orphan branch calledgb-pages:git checkout --orphan gb-pages && git rm -f $(git ls-files))
  • create a static site under this branch. E.g.echo '<h1>hello, world</h1>' > index.html to create a simple file.
  • commit && push to gitbucket this orphan branch
  • open the browser and point to<your repo url>/pages

Note: This plugin won't render markdown content. To render markdown content, use the GitBucket Wiki functionality, or use one of the many static site generators (e.g.jekyll,hugo)

Installation

This plugin is bundled with newer version of GitBucket, for olderversion please follow the instruction below

Install manually

  • download fromreleases
  • copy the jar file to<GITBUCKET_HOME>/plugins/ (GITBUCKET_HOME defaults to~/.gitbucket)
  • enable it in plugin settings (you may need to restart gitbucket)

Versions

pages versiongitbucket version
1.10.04.36.0
1.9.04.35.0
1.8.04.32.0
1.7.04.23.0
1.6.04.19.0
1.5.04.15.0
1.34.14.1
1.24.13
1.14.11
1.04.10
0.94.9
0.84.6
0.74.3 ~ 4.6
0.64.2.x
0.54.0, 4.1
0.43.13
0.33.12
0.23.11
0.13.9, 3.10

Security (panic mode)

To prevent XSS, one must use two different domains to host the pages andGitbucket itself. Below is a working example of nginx configuration to achieve that.

server {    listen 80;    server_name git.local;    location ~ ^/([^/]+)/([^/]+)/pages/(.*)$ {        rewrite  ^/([^/]+)/([^/]+)/pages/(.*)$  http://doc.local/$1/$2/pages/$3  redirect;    }    location / {        proxy_pass http://127.0.0.1:8080;    }}server {    listen 80;    server_name doc.local;    location ~ ^/([^/]+)/([^/]+)/pages/(.*)$ {        proxy_pass http://127.0.0.1:8080;    }    location / {        return 403;    }}

CI

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Contributors9


[8]ページ先頭

©2009-2025 Movatter.jp