1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-ghp-import
7 SDESC[py310]= Copies docs directly to gh-pages branch (3.10)
8 SDESC[py311]= Copies docs directly to gh-pages branch (3.11)
9 HOMEPAGE= https://github.com/c-w/ghp-import
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/f7/ec/67fbef5d497f86283db54c22eec6f6140243aae73265799baaaa19cd17fb
14 DISTFILE[1]= ghp_import-2.1.0-py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY310 PY311
20 OPTIONS_STANDARD= none
21 VOPTS[py310]= PY310=ON PY311=OFF
22 VOPTS[py311]= PY310=OFF PY311=ON
24 DISTNAME= ghp_import-2.1.0.dist-info
28 [PY310].RUN_DEPENDS_ON= python-python-dateutil:single:py310
29 [PY310].USES_ON= python:py310,wheel
31 [PY311].RUN_DEPENDS_ON= python-python-dateutil:single:py311
32 [PY311].USES_ON= python:py311,wheel
34 [FILE:3595:descriptions/desc.single]
45 As part of [gunicorn][gunicorn], [Benoit Chesneau][benoit] and [Paul
47 were looking at how to host documentation. There's the obvious method of
48 using [GitHub's post-receive hook][github-post] to trigger doc builds and
50 to a webserver, but we ended up wanting to try out github's hosting to make
52 whole interface a bit more robust.
54 [GitHub Pages][gh-pages] is a pretty awesome service that GitHub provides
56 hosting project documentation. The only thing is that it requires a
57 `gh-pages` branch that is the site's document root. This means that keeping
58 documentation sources in the branch with code is a bit difficult. And it
60 turns into a head scratcher for things like [Sphinx][sphinx] that want to
61 access documentation sources and code sources at the same time.
63 Then we stumbled across an interesting looking package called
64 [github-tools][github-tools] that looked almost like what we wanted. It was
66 complicated and more involved than we wanted but it gave us an idea. Why
68 just write a script that can copy a directory to the `gh-pages` branch of
70 repository. This saves us from even having to think about the branch and
71 everything becomes magical.
73 This is what `ghp-import` was written for.
75 [gunicorn]: http://www.gunicorn.com/ "Gunicorn"
76 [benoit]: http://github.com/benoitc "BenoƮt Chesneau"
77 [davisp]: http://github.com/davisp "Paul J. Davis"
78 [github-post]: https://help.github.com/articles/post-receive-hooks "GitHub
80 [gh-pages]: http://pages.github.com/ "GitHub Pages"
81 [sphinx]: http://sphinx.pocoo.org/ "Sphinx Documentation"
82 [github-tools]: http://dinoboff.github.com/github-tools/ "github-tools"
87 This will **DESTROY** your `gh-pages` branch. If you love it, you'll want
89 take backups before playing with this. This script assumes that `gh-pages`
91 100% derivative. You should never edit files in your `gh-pages` branch by
93 if you're using this script because you will lose your work.
95 When used with a prefix, only files below the set prefix will be destroyed,
97 above warning to just that directory and everything below it.
103 Usage: ghp-import [OPTIONS] DIRECTORY
106 -n, --no-jekyll Include a .nojekyll file in the branch.
107 -c CNAME, --cname=CNAME
108 Write a CNAME file with the given CNAME.
109 -m MESG, --message=MESG
110 The commit message to use on the target branch.
111 -p, --push Push the branch to origin/{branch} after
113 -x PREFIX, --prefix=PREFIX
114 The prefix to add to each file that gets pushed to
116 remote. Only files below this prefix will be
119 -f, --force Force the push to the repository.
120 -o, --no-history Force new commit without parent history.
121 -r REMOTE, --remote=REMOTE
122 The name of the remote to push to. [origin]
123 -b BRANCH, --branch=BRANCH
124 Name of the branch to write to. [gh-pages]
125 -s, --shell Use the shell when invoking Git. [False]
126 -l, --follow-links Follow symlinks when adding files. [False]
127 -h, --help show this help message and exit
130 Its pretty simple. Inside your repository just run `ghp-import $DOCS_DIR`
131 where `$DOCS_DIR` is the path to the **built** documentation. This will
133 commit to your `gh-pages` branch with the current documents in it.
138 8337dd7b50877f163d4c0289bc1f1c7f127550241988d568c1db512c4324a619 11034 ghp_import-2.1.0-py3-none-any.whl