Moving gitweb documentation to manpages
cover Moving gitweb documentation to manpages
The original patch adding manpage for /etc/gitweb.conf was sent by Drew Northup (as can be seen from shortlog); I have added manpage for gitweb itself, inspired by his patch. Unfortunately Drew doesn't currently have time to work on this patch (patch series), so that is why it is me resending this series (again).
Compared to previous version
"[PATCH/RFCv4 0/4] Moving gitweb documentation to manpages"
http://thread.gmane.org/gmane.comp.version-control.git/181605
it has much improved gitweb.conf.txt manpage, and "Documentation:
Preparation for gitweb manpages" commit message, thanks to feedback provided by Jonathan Nieder.
New in this series are patches 4 and 5, which add links to the newly created gitweb documentation and gitweb config variables from other manpages, respectively.
Note that only "Documentation: Preparation for gitweb manpages" (which is not strictly necessary) and "gitweb: Add manpage for gitweb" (which didn't get as much review as "gitweb: Add manpage for gitweb configuration files" are still marked as RFC.
I have checked that RPM generation of 'gitweb' package works correctly wrt. gitweb documentation.
Table of contents:
~~~~~~~~~~~~~~~~~~
[PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages [PATCHv5 2/6] gitweb: Add manpage for gitweb configuration files [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb [PATCHv5 4/6] Documentation: Link to gitweb(1) and
gitweb.conf(5) in other manpages
[PATCHv5 5/6] Documentation: Add gitweb config variables to
git-config(1)
[PATCHv5 6/6] gitweb: Add gitweb manpages to 'gitweb' package in
git.spec.in
Shortlog:
~~~~~~~~~
Drew Northup (1):
gitweb: Add manpage for gitweb configuration files
Jakub Narebski (5):
Documentation: Preparation for gitweb manpages
gitweb: Add manpage for gitweb
Documentation: Link to gitweb(1) and gitweb.conf(5) in other manpages
Documentation: Add gitweb config variables to git-config(1)
gitweb: Add gitweb manpages to 'gitweb' package in git.spec
Diffstat:
~~~~~~~~~
Documentation/Makefile | 7 +- Documentation/config.txt | 17 + Documentation/git-instaweb.txt | 4 + Documentation/gitweb.conf.txt | 875 ++++++++++++++++++++++++++++++++++++++++ Documentation/gitweb.txt | 703 ++++++++++++++++++++++++++++++++ command-list.txt | 1 + git.spec.in | 7 + gitweb/INSTALL | 94 +---- gitweb/Makefile | 7 +- gitweb/README | 411 +------------------ 10 files changed, 1647 insertions(+), 479 deletions(-) create mode 100644 Documentation/gitweb.conf.txt create mode 100644 Documentation/gitweb.txt
Signature · 1 line
1.7.6
PATCH 1/6 Documentation: Preparation for gitweb manpages
Gitweb documentation currently consists of gitweb/README, gitweb/INSTALL and comments in gitweb source code. This is harder to find, use and browse than manpages ("man gitweb" or "git help gitweb") and HTML documentation ("git help --web gitweb").
The goal of the next two commits is to move documentation out of gitweb/README to gitweb.txt and gitweb.conf.txt manpages, reducing its size 10x from around 500 to around 50 lines (two pages), and to move information not related directly to building and installing gitweb out of gitweb/INSTALL.
The idea is to have the gitweb manpage sources reside in AsciiDoc format in the Documentation/ directory, like for gitk and git-gui. This means that building git documentation (with "make doc") would also build gitweb manpages.
An alternate solution would be to have gitweb documentation in the gitweb/ directory, perhaps in POD format (see perlpod(1)).
This patch adds infrastructure for easy generation of only gitweb-related manpages. It adds a currently empty 'gitweb-doc' target to Documentation/Makefile, and a 'doc' proxy target to gitweb/Makefile.
This way to build only gitweb documentation in both 'man' and 'html' formats one can use
make -C gitweb doc
or
cd gitweb; make doc
This somewhat follows the idea of 'full-svn-test' and 'gitweb-test' in t/Makefile. Note also that with alternate solution, where source of gitweb manpages would reside in the gitweb/ directory, "make doc" would invoke "make -C gitweb doc" to generate formatted docs.
The gitweb.conf(5) and gitweb(1) manpages will be added in subsequent commits.
[Commit message improved with help of Jonathan Nieder]
---
This commit is not strictly necessary: it only adds "doc" target to gitweb/Makefile, and "gitweb-doc" target to Documentation/Makefile; neither is run when e.g. generating RPM.
They are here because they would be here if documentation source was kept along with gitweb script in the 'gitweb/' subdirectory, and to make it easier and faster to test the changes.
Documentation/Makefile | 3 +++ gitweb/Makefile | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletions(-)
Documentation/Makefile +3 -0
@@ -170,6 +170,9 @@ info: git.info gitman.info pdf: user-manual.pdf +GITWEB_DOC = $(filter gitweb.%,$(DOC_HTML) $(DOC_MAN1) $(DOC_MAN5) $(DOC_MAN7)) +gitweb-doc: $(GITWEB_DOC) + install: install-man install-man: man
gitweb/Makefile +6 -1
@@ -174,6 +174,11 @@ test-installed: GITWEB_TEST_INSTALLED='$(DESTDIR_SQ)$(gitwebdir_SQ)' \ $(MAKE) -C ../t gitweb-test +### Documentation + +doc: + $(MAKE) -C ../Documentation gitweb-doc + ### Installation rules install: all
@@ -187,5 +192,5 @@ install: all clean: $(RM) gitweb.cgi static/gitweb.min.js static/gitweb.min.css GITWEB-BUILD-OPTIONS -.PHONY: all clean install test test-installed .FORCE-GIT-VERSION-FILE FORCE +.PHONY: all clean install test test-installed doc .FORCE-GIT-VERSION-FILE FORCE
Signature · 1 line
1.7.6
Re: [PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages
Quoted 4 lines · Jakub Narebski
This patch adds infrastructure for easy generation of only gitweb-related manpages. It adds a currently empty 'gitweb-doc' target to
Documentation/Makefile, and a 'doc' proxy target to gitweb/Makefile.
I tend to agree with your after-three-dash comment that this separation is not necessary, it may be expedient while working on the series, but wants to be removed once the series is complete.
Quoted 11 lines
This way to build only gitweb documentation in both 'man' and 'html' formats one can use
make -C gitweb doc
or
cd gitweb; make doc
This somewhat follows the idea of 'full-svn-test' and 'gitweb-test' in t/Makefile.
It seems that this follows the idea backward in that the existing practice fo full-svn-test (and valgrind test) is to allow _excluding_ stuff that the user may not care about or the user cannot afford to run; in that sense 'gitweb-test' target is also backwards.
Quoted 58 lines
gitweb manpages would reside in the gitweb/ directory, "make doc" would invoke "make -C gitweb doc" to generate formatted docs.
The
gitweb.conf(5)and gitweb(1) manpages will be added in subsequent commits.[Commit message improved with help of Jonathan Nieder]
Signed-off-by Jakub Narebski <[email protected]>---
This commit is not strictly necessary: it only adds "doc" target to gitweb/Makefile, and "gitweb-doc" target toDocumentation/Makefile; neither is run when e.g. generating RPM.They are here because they would be here if documentation source was kept along with gitweb script in the 'gitweb/' subdirectory, and to make it easier and faster to test the changes.
Documentation/Makefile | 3 +++ gitweb/Makefile | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletions(-)Documentation/Makefile +3
-0@@ -170,6 +170,9 @@ info: git.info gitman.info pdf: user-manual.pdf +GITWEB_DOC = $(filter gitweb.%,$(DOC_HTML) $(DOC_MAN1) $(DOC_MAN5) $(DOC_MAN7)) +gitweb-doc: $(GITWEB_DOC) + install: install-man install-man: mangitweb/Makefile +6
-1@@ -174,6 +174,11 @@ test-installed: GITWEB_TEST_INSTALLED='$(DESTDIR_SQ)$(gitwebdir_SQ)' \ $(MAKE) -C ../t gitweb-test +### Documentation + +doc: + $(MAKE) -C ../Documentation gitweb-doc + ### Installation rules install: all@@ -187,5 +192,5 @@ install: all clean: $(RM) gitweb.cgi static/gitweb.min.js static/gitweb.min.css GITWEB-BUILD-OPTIONS -.PHONY: all clean install test test-installed .FORCE-GIT-VERSION-FILE FORCE +.PHONY: all clean install test test-installed doc .FORCE-GIT-VERSION-FILE FORCE
Re: [PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages
Quoted 10 lines · Junio C Hamano
Quoted 4 lines · Jakub Narebski
This patch adds infrastructure for easy generation of only gitweb-related manpages. It adds a currently empty 'gitweb-doc' target to
Documentation/Makefile, and a 'doc' proxy target to gitweb/Makefile.I tend to agree with your after-three-dash comment that this separation is not necessary, it may be expedient while working on the series, but wants to be removed once the series is complete.
Also it is a bit of historical remains, as in original patch by Drew the manpage (the AsciiDoc source) was in 'gitweb/' directory.
Anyway, I'll remove this patch from the future versions of this patch series (if there would be need for next version).
[...]
Quoted 8 lines
Quoted 8 lines
---
This commit is not strictly necessary: it only adds "doc" target to gitweb/Makefile, and "gitweb-doc" target toDocumentation/Makefile; neither is run when e.g. generating RPM.They are here because they would be here if documentation source was kept along with gitweb script in the 'gitweb/' subdirectory, and to make it easier and faster to test the changes.
Signature · 2 lines
Jakub Narebski Poland
Re: [PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages
I probably do not have time to look into this, but just FYI my trial merge to 'pu' of this topic is failing like this:
asciidoc: ERROR: gitweb.conf.txt: line 484: illegal style name: Default: ()
asciidoc: ERROR: gitweb.conf.txt: line 494: illegal style name: Default: 300
Re: [PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages
Quoted 5 lines · Junio C Hamano
I probably do not have time to look into this, but just FYI my trial merge to 'pu' of this topic is failing like this:
asciidoc: ERROR: gitweb.conf.txt: line 484: illegal style name: Default: ()
asciidoc: ERROR: gitweb.conf.txt: line 494: illegal style name: Default: 300
Damn, I thought I have fixed that. This probably depends on AsciiDoc version ("make doc" on 'master' generates a few _warnings_ for me related to similar situation), but the problem is with
[Default: <value>]
that was copied from gitweb/README. But [<sth>] is an attribute list (style name in simplest form), used more often in newer AsciiDoc.
So either we have to escape '[' and ']', i.e. use {startsb} and {endsb}, which would reduce human-friendliness, or move to different way of marking default values, e.g. _italic_.
What do you think?
Signature · 2 lines
Jakub Narebski Poland
Re: [PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages
Quoted 14 lines · Jakub Narebski
Quoted 5 lines · Junio C Hamano
I probably do not have time to look into this, but just FYI my trial merge to 'pu' of this topic is failing like this:
asciidoc: ERROR: gitweb.conf.txt: line 484: illegal style name: Default: ()
asciidoc: ERROR: gitweb.conf.txt: line 494: illegal style name: Default: 300Damn, I thought I have fixed that. This probably depends on AsciiDoc version ("make doc" on 'master' generates a few _warnings_ for me related to similar situation), but the problem is with
[Default: <value>]
Quoted 8 lines
that was copied from gitweb/README. But [<sth>] is an attribute list (style name in simplest form), used more often in newer AsciiDoc.
So either we have to escape '[' and ']', i.e. use {startsb} and {endsb}, which would reduce human-friendliness, or move to different way of marking default values, e.g. _italic_.
What do you think?
What do the other documents in the directory this file lives say? I think we explain what the variables does, and add "defaults to false" or somesuch in the text, without any funny mark-up.
Re: [PATCHv5/RFC 1/6] Documentation: Preparation for gitweb manpages
Quoted 22 lines · Junio C Hamano
Quoted 21 lines · Jakub Narebski
Quoted 5 lines · Junio C Hamano
I probably do not have time to look into this, but just FYI my trial merge to 'pu' of this topic is failing like this:
asciidoc: ERROR: gitweb.conf.txt: line 484: illegal style name: Default: ()
asciidoc: ERROR: gitweb.conf.txt: line 494: illegal style name: Default: 300Damn, I thought I have fixed that. This probably depends on AsciiDoc version ("make doc" on 'master' generates a few _warnings_ for me related to similar situation), but the problem is with
[Default: <value>]
that was copied from gitweb/README. But [<sth>] is an attribute list (style name in simplest form), used more often in newer AsciiDoc.
So either we have to escape '[' and ']', i.e. use {startsb} and {endsb}, which would reduce human-friendliness, or move to different way of marking default values, e.g. _italic_.
Quoted 5 lines
Quoted 1 line
What do you think?
What do the other documents in the directory this file lives say? I think we explain what the variables does, and add "defaults to false" or somesuch in the text, without any funny mark-up.
O.K., will do.
Now that reminds me that in a few situations gitweb.conf.txt uses literary description "defaults to sth"... I'll make the rest consistent with this.
Signature · 2 lines
Jakub Narebski Poland
PATCH v5 2/6 gitweb: Add manpage for gitweb configuration files
In reply to Jakub NarebskiFrom: Drew Northup <[email protected]>
Much of what is in gitweb.conf.txt has been pulled directly from the README file of gitweb. The manpage was supplemented with description of missing gitweb config variables, and with description of gitweb's %features.
There remains a bit of redundancy, which should be reduced if possible... but I think some of duplication of information is inevitable.
[jn: Improved, extended, removed duplicate info from README]
---
I refer to my reply to Jonathan Nieder in
Re: [PATCH/RFCv4 2/4] gitweb: Add manpage for /etc/gitweb.conf (for gitweb documentation)
http://thread.gmane.org/gmane.comp.version-control.git/181605/focus=181896
for description of changes (and to parent post).
Thanks a lot to Jonathan Nieder.
Documentation/Makefile | 2 +- Documentation/gitweb.conf.txt | 866 +++++++++++++++++++++++++++++++++++++++++ gitweb/README | 133 +------- 3 files changed, 868 insertions(+), 133 deletions(-) create mode 100644 Documentation/gitweb.conf.txt
Documentation/Makefile +1 -1
@@ -3,7 +3,7 @@ MAN1_TXT= \ $(wildcard git-*.txt)) \ gitk.txt git.txt MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt \ - gitrepository-layout.txt + gitrepository-layout.txt gitweb.conf.txt MAN7_TXT=gitcli.txt gittutorial.txt gittutorial-2.txt \ gitcvs-migration.txt gitcore-tutorial.txt gitglossary.txt \ gitdiffcore.txt gitnamespaces.txt gitrevisions.txt gitworkflows.txt
Documentation/gitweb.conf.txt new file +866 -0
866 lines not on this page · raw message
gitweb/README +1 -132
141 lines not on this page · raw message
Signature · 1 line
1.7.6
PATCH 3/6 gitweb: Add manpage for gitweb
In reply to Jakub NarebskiMost of what is in gitweb.txt it has been pulled directly from the README and INSTALL files of gitweb.
Current version is somewhat based on structure of SVN::Web manpage (one of web interfaces for Subversion).
gitweb.conf(5) i.e. gitweb configuration manpage now refers to appropriate sections in gitweb(1). gitweb/README now refers to gitweb/INSTALL and gitweb(1) manpage. gitweb/INSTALL now refers to gitweb.conf(5) and gitweb(1).
---
Does anyone know a well structured _manpage_ for a web application (other than SVN::Web) to borrow ideas from for this one?
Jonathan, could you please review also this patch, if you have some free time? Thanks in advance.
Documentation/Makefile | 2 +- Documentation/gitweb.conf.txt | 9 + Documentation/gitweb.txt | 703 +++++++++++++++++++++++++++++++++++++++++ gitweb/INSTALL | 94 +----- gitweb/README | 278 ++--------------- 5 files changed, 741 insertions(+), 345 deletions(-) create mode 100644 Documentation/gitweb.txt
Documentation/Makefile +1 -1
@@ -1,7 +1,7 @@ MAN1_TXT= \ $(filter-out $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \ $(wildcard git-*.txt)) \ - gitk.txt git.txt + gitk.txt gitweb.txt git.txt MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt \ gitrepository-layout.txt gitweb.conf.txt MAN7_TXT=gitcli.txt gittutorial.txt gittutorial-2.txt \
Documentation/gitweb.conf.txt +9 -0
@@ -35,6 +35,10 @@ CGI script with the default name 'gitweb_config.perl' -- allowing one to have multiple gitweb instances with different configurations by the use of symlinks. +Note that some configuration can be controlled on per-repository rather than +gitweb-wide basis: see "Per-repository gitweb configuration" subsection on +linkgit:gitweb[1] manpage. + DISCUSSION ----------
@@ -109,6 +113,8 @@ Location of repositories The configuration variables described below control how gitweb finds git repositories, and how repositories are displayed and accessed. +See also "Repositories" and later subsections in linkgit:gitweb[1] manpage. + $projectroot:: Absolute filesystem path which will be prepended to project path; the path to repository is `$projectroot/$project`. Set to
@@ -193,6 +199,9 @@ our $export_ok = "git-daemon-export-ok"; ---------------------------------------------------------------------------- + If not set (default), it means that this feature is disabled. ++ +See also more involved example in "Controlling access to git repositories" +subsection on linkgit:gitweb[1] manpage. $strict_export:: Only allow viewing of repositories also shown on the overview page.
Documentation/gitweb.txt new file +703 -0
703 lines not on this page · raw message
gitweb/INSTALL +8 -86
112 lines not on this page · raw message
gitweb/README +20 -258
295 lines not on this page · raw message
Signature · 1 line
1.7.6
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb
Quoted 12 lines · Jakub Narebski
Documentation/gitweb.txt new file +6
-0@@ -0,0 +1,703 @@ +gitweb(1) +========= + +NAME +---- +gitweb - Git web interface (web frontend to Git repositories)
Documentation/gitweb.txt line 16
Quoted 10 lines
Documentation/gitweb.txt new file +10
-0+ +SYNOPSIS +-------- +To get started with gitweb, run linkgit:git-instaweb[1] from a git repository. +This would configure and start your web server, and run web browser pointing to +gitweb page. + +See http://git.kernel.org/?p=git/git.git;a=tree;f=gitweb[] or +http://repo.or.cz/w/git.git/tree/HEAD:/gitweb/[] for gitweb source code, +browsed using gitweb itself.
This doesn't quite look like a "SYNOPSIS" section. Shouldn't everything after the first line be at the beginning of "DESCRIPTION"?
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb
Quoted 19 lines · Junio C Hamano
Quoted 17 lines · Jakub Narebski
Documentation/gitweb.txt new file +11
-0@@ -0,0 +1,703 @@ +gitweb(1) +========= + +NAME +---- +gitweb - Git web interface (web frontend to Git repositories) + +SYNOPSIS +-------- +To get started with gitweb, run linkgit:git-instaweb[1] from a git repository. +This would configure and start your web server, and run web browser pointing to
Quoted 8 lines
Documentation/gitweb.txt line 16
Quoted 5 lines
Documentation/gitweb.txt new file +5
-0+gitweb page. + +See http://git.kernel.org/?p=git/git.git;a=tree;f=gitweb[] or +http://repo.or.cz/w/git.git/tree/HEAD:/gitweb/[] for gitweb source code, +browsed using gitweb itself.This doesn't quite look like a "SYNOPSIS" section. Shouldn't everything after the first line be at the beginning of "DESCRIPTION"?
Did you mean something like (it would have to be slightly adjusted, of course):
+SYNOPSIS
+--------
+To get started with gitweb, run linkgit:git-instaweb[1] from a git repository.
+
+DESCRIPTION
+-----------
+This would configure and start your web server, and run web browser pointing to
+gitweb page.The problem is that catering to old AsciiDoc (but still used by some of long-term-support Linux distributions) requires to have "SYNOPSIS" section... but there is no natural synopsis for non self-hostable web application, is there?
Signature · 2 lines
Jakub Narebski Poland
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb
Quoted 4 lines · Jakub Narebski
The problem is that catering to old AsciiDoc (but still used by some of long-term-support Linux distributions) requires to have "SYNOPSIS" section... but there is no natural synopsis for non self-hostable web application, is there?
I personally think something like
SYNOPSIS -------- /usr/share/gitweb/gitweb.cgi git instaweb
or perhaps something like
SYNOPSIS -------- http://<site>/?p=<project>.git;a=<action>;h=<object>;<parameters> http://<site>/<project>/<action>/<object>?<parameters>
would be best.
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb
Quoted 14 lines · Jonathan Nieder
Quoted 4 lines · Jakub Narebski
The problem is that catering to old AsciiDoc (but still used by some of long-term-support Linux distributions) requires to have "SYNOPSIS" section... but there is no natural synopsis for non self-hostable web application, is there?
I personally think something like
SYNOPSIS -------- /usr/share/gitweb/gitweb.cgi git instaweb
Quoted 8 lines
or perhaps something like
SYNOPSIS -------- http://<site>/?p=<project>.git;a=<action>;h=<object>;<parameters> http://<site>/<project>/<action>/<object>?<parameters>would be best.
This would be why I included a synopsis with my original submission. As this was supposed to be a description of the configuration files of said application it does not make much sense to put the executable in the synopsis. Please forgive me for attempting to make sense!
Signature · 4 lines
-Drew Northup ________________________________________________ "As opposed to vegetable or mineral error?" -John Pescatore, SANS NewsBites Vol. 12 Num. 59
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb
Quoted 22 lines · Drew Northup
Quoted 21 lines · Jonathan Nieder
Quoted 4 lines · Jakub Narebski
The problem is that catering to old AsciiDoc (but still used by some of long-term-support Linux distributions) requires to have "SYNOPSIS" section... but there is no natural synopsis for non self-hostable web application, is there?
I personally think something like
SYNOPSIS -------- /usr/share/gitweb/gitweb.cgi git instawebor perhaps something like
SYNOPSIS -------- http://<site>/?p=<project>.git;a=<action>;h=<object>;<parameters> http://<site>/<project>/<action>/<object>?<parameters>
Quoted 6 lines
Quoted 1 line
would be best.
This would be why I included a synopsis with my original submission. As this was supposed to be a description of the configuration files of said application it does not make much sense to put the executable in the synopsis. Please forgive me for attempting to make sense!
But this manpage is about _gitweb itself_, not about gitweb config file(s). Gitweb itself is application, though it is not runnable directly (yet).
Web apps either don't use manpages as documentation, and those that do that I found (SVN::Web for example) include runnable server-starting script.
Signature · 2 lines
Jakub Narebski Poland
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb (APPLICATION!!!)
Quoted 7 lines · Jakub Narebski
Quoted 4 lines · Drew Northup
This would be why I included a synopsis with my original submission. As this was supposed to be a description of the configuration files of said application it does not make much sense to put the executable in the synopsis. Please forgive me for attempting to make sense!
Quoted 5 lines
But this manpage is about
_gitwebitself_, not about gitweb config file(s). Gitweb itself is application, though it is not runnable directly (yet).Web apps either don't use manpages as documentation, and those that do that I found (
SVN::Webfor example) include runnable server-starting script.
Hmm, Couldn't tell from the mail header _which_ we were talking about in this subthread. I'll have to read the _whole_ patch apparently next time.
Crawling back into my cave...
Signature · 4 lines
-Drew Northup ________________________________________________ "As opposed to vegetable or mineral error?" -John Pescatore, SANS NewsBites Vol. 12 Num. 59
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb (APPLICATION!!!)
Quoted 11 lines · Drew Northup
Quoted 10 lines · Jakub Narebski
Quoted 4 lines · Drew Northup
This would be why I included a synopsis with my original submission. As this was supposed to be a description of the configuration files of said application it does not make much sense to put the executable in the synopsis. Please forgive me for attempting to make sense!
But this manpage is about
_gitwebitself_, not about gitweb config file(s). Gitweb itself is application, though it is not runnable directly (yet).
Quoted 6 lines
Quoted 2 lines
Web apps either don't use manpages as documentation, and those that do that I found (
SVN::Webfor example) include runnable server-starting script.Hmm, Couldn't tell from the mail header _which_ we were talking about in this subthread. I'll have to read the _whole_ patch apparently next time.
I'm sorry. I guess better subjects would be:
gitweb: Add gitweb.conf(5) manpage
gitweb: Add gitweb(1) manpage
instead of current
gitweb: Add manpage for gitweb configuration files
gitweb: Add manpage for gitweb
Or perhaps:
gitweb: Add manpage for gitweb configuration files
gitweb: Add manpage for gitweb itself
Signature · 2 lines
Jakub Narebski Poland
Re: [PATCHv5/RFC 3/6] gitweb: Add manpage for gitweb (APPLICATION!!!)
Quoted 26 lines · Jakub Narebski
Quoted 11 lines · Drew Northup
Quoted 10 lines · Jakub Narebski
Quoted 4 lines · Drew Northup
This would be why I included a synopsis with my original submission. As this was supposed to be a description of the configuration files of said application it does not make much sense to put the executable in the synopsis. Please forgive me for attempting to make sense!
But this manpage is about
_gitwebitself_, not about gitweb config file(s). Gitweb itself is application, though it is not runnable directly (yet).Quoted 6 lines
Quoted 2 lines
Web apps either don't use manpages as documentation, and those that do that I found (
SVN::Webfor example) include runnable server-starting script.Hmm, Couldn't tell from the mail header _which_ we were talking about in this subthread. I'll have to read the _whole_ patch apparently next time.
I'm sorry. I guess better subjects would be:
gitweb: Add
gitweb.conf(5)manpage
gitweb: Add gitweb(1) manpageinstead of current
Quoted 7 lines
gitweb: Add manpage for gitweb configuration files
gitweb: Add manpage for gitwebOr perhaps:
gitweb: Add manpage for gitweb configuration files
gitweb: Add manpage for gitweb itself
Jakub,
For the sake of clarity I'd go with redundancy (but I've noticed that's not always enormously popular around here)
gitweb: Add manpage for gitweb configuration files--gitweb.conf(5)
gitweb: Add manpage for gitweb itself--gitweb(1)
Perhaps the first one is too long, but I think that it leaves little question as to what the patch contains. Otherwise, your first or final pair of updated subjects would probably be clear enough.
Granted, just as soon as you fix that somebody else will manage to top my misreading of the subject line ;-).
Signature · 4 lines
-Drew Northup ________________________________________________ "As opposed to vegetable or mineral error?" -John Pescatore, SANS NewsBites Vol. 12 Num. 59
PATCH v5 4/6 Documentation: Link to gitweb(1) and gitweb.conf(5) in other manpages
In reply to Jakub NarebskiAdd link to gitweb(1) in "SEE ALSO" section of git-instaweb(1) manpage, and "Ancillary Commands" section of git(1) manpage (the latter by the way of command-list.txt file).
---
This is new in this series.
BTW. why command-list.txt uses not only spaces to separate and align, but also tabs, and mixtures of tabs and spaces???
Documentation/git-instaweb.txt | 4 ++++ command-list.txt | 1 + 2 files changed, 5 insertions(+), 0 deletions(-)
Documentation/git-instaweb.txt +4 -0
@@ -84,6 +84,10 @@ If the configuration variable 'instaweb.browser' is not set, 'web.browser' will be used instead if it is defined. See linkgit:git-web{litdd}browse[1] for more information about this. +SEE ALSO +-------- +linkgit:gitweb[1] + GIT --- Part of the linkgit:git[1] suite
command-list.txt +1 -0
@@ -130,5 +130,6 @@ git-upload-pack synchelpers git-var plumbinginterrogators git-verify-pack plumbinginterrogators git-verify-tag ancillaryinterrogators +gitweb ancillaryinterrogators git-whatchanged ancillaryinterrogators git-write-tree plumbingmanipulators
Signature · 1 line
1.7.6
PATCH v5 5/6 Documentation: Add gitweb config variables to git-config(1)
In reply to Jakub NarebskiAdd a list of gitweb config variables to git-config(1) manpage, just linking to gitweb(1) or gitweb.conf(5).
---
This patch is new in this series.
BTW. there was a patch from Thomas Rast, which you can see e.g. in 't/doc-config-extraction' branch in my repositories:
http://repo.or.cz/w/git/jnareb-git.git
https://github.com/jnareb/git
which made git generate such thing automatically.
Documentation/config.txt | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
Documentation/config.txt +17 -0
@@ -1071,6 +1071,23 @@ All gitcvs variables except for 'gitcvs.usecrlfattr' and is one of "ext" and "pserver") to make them apply only for the given access method. +gitweb.category:: +gitweb.description:: +gitweb.owner:: +gitweb.url:: + See linkgit:gitweb[1] for description. + +gitweb.avatar:: +gitweb.blame:: +gitweb.grep:: +gitweb.highlight:: +gitweb.patches:: +gitweb.pickaxe:: +gitweb.remote_heads:: +gitweb.showsizes:: +gitweb.snapshot:: + See linkgit:gitweb.conf[5] for description. + grep.lineNumber:: If set to true, enable '-n' option by default.
Signature · 1 line
1.7.6
PATCH v5 6/6 gitweb: Add gitweb manpages to 'gitweb' package in git.spec
In reply to Jakub NarebskiThis patch follows similar lines in %files section for 'gitk' and 'git-gui' subpackages.
---
This version adds gitweb's README and INSTALL to 'gitweb' subpackage.
git.spec.in | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
git.spec.in +7 -0
@@ -199,7 +199,11 @@ rm -rf $RPM_BUILD_ROOT %files -n gitweb %defattr(-,root,root) +%doc gitweb/README gitweb/INSTALL Documentation/*gitweb*.txt %{_datadir}/gitweb +%{!?_without_docs: %{_mandir}/man1/*gitweb*.1*} +%{!?_without_docs: %{_mandir}/man5/*gitweb*.5*} +%{!?_without_docs: %doc Documentation/*gitweb*.html } %files -n perl-Git -f perl-files %defattr(-,root,root)
@@ -208,6 +212,9 @@ rm -rf $RPM_BUILD_ROOT # No files for you! %changelog +* Sun Sep 18 2011 Jakub Narebski <[email protected]> +- Add gitweb manpages to 'gitweb' subpackage + * Wed Jun 30 2010 Junio C Hamano <[email protected]> - Add 'gitweb' subpackage.
Signature · 1 line
1.7.6
Thanks for working on this.