Fossil SCM

adding help cross references

wolfgang 2010-10-10 16:46 wolfgangHelpCmd
Commit c880f0920fc9cec9639de51bb24fadf1b93768f8
+1 -1
--- src/event.c
+++ src/event.c
@@ -435,7 +435,7 @@
435435
@ <input type="submit" name="preview" value="Preview Your Changes" />
436436
@ <input type="submit" name="submit" value="Apply These Changes" />
437437
@ <input type="submit" name="cancel" value="Cancel" />
438438
@ </td></tr></table>
439439
@ </div></form>
440
- style_footer();
440
+ style_footer_cmdref(0,"<a href=\"wiki_rules\">wiki format</a>");
441441
}
442442
--- src/event.c
+++ src/event.c
@@ -435,7 +435,7 @@
435 @ <input type="submit" name="preview" value="Preview Your Changes" />
436 @ <input type="submit" name="submit" value="Apply These Changes" />
437 @ <input type="submit" name="cancel" value="Cancel" />
438 @ </td></tr></table>
439 @ </div></form>
440 style_footer();
441 }
442
--- src/event.c
+++ src/event.c
@@ -435,7 +435,7 @@
435 @ <input type="submit" name="preview" value="Preview Your Changes" />
436 @ <input type="submit" name="submit" value="Apply These Changes" />
437 @ <input type="submit" name="cancel" value="Cancel" />
438 @ </td></tr></table>
439 @ </div></form>
440 style_footer_cmdref(0,"<a href=\"wiki_rules\">wiki format</a>");
441 }
442
+9 -3
--- src/style.c
+++ src/style.c
@@ -119,13 +119,19 @@
119119
120120
/*
121121
** append a reference to command line to a web page
122122
** and generate the footer
123123
*/
124
-void style_footer_cmdref( const char * const zCmd, const char * const zSubCmd ){
125
- @ <div class="cmdref">See also command line help:
126
- @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a> %s(zSubCmd?zSubCmd:"")
124
+void style_footer_cmdref( const char * const zCmd, const char * const zAddOn ){
125
+ @ <div class="cmdref">
126
+ if( zCmd ){
127
+ @ See also command line help:
128
+ @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a>
129
+ }
130
+ if( zAddOn ){
131
+ @ %s(zAddOn)
132
+ }
127133
@ </div>
128134
style_footer();
129135
}
130136
131137
/*
132138
--- src/style.c
+++ src/style.c
@@ -119,13 +119,19 @@
119
120 /*
121 ** append a reference to command line to a web page
122 ** and generate the footer
123 */
124 void style_footer_cmdref( const char * const zCmd, const char * const zSubCmd ){
125 @ <div class="cmdref">See also command line help:
126 @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a> %s(zSubCmd?zSubCmd:"")
 
 
 
 
 
 
127 @ </div>
128 style_footer();
129 }
130
131 /*
132
--- src/style.c
+++ src/style.c
@@ -119,13 +119,19 @@
119
120 /*
121 ** append a reference to command line to a web page
122 ** and generate the footer
123 */
124 void style_footer_cmdref( const char * const zCmd, const char * const zAddOn ){
125 @ <div class="cmdref">
126 if( zCmd ){
127 @ See also command line help:
128 @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a>
129 }
130 if( zAddOn ){
131 @ %s(zAddOn)
132 }
133 @ </div>
134 style_footer();
135 }
136
137 /*
138
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -384,11 +384,11 @@
384384
@ <input type="submit" name="cancel" value="Cancel" />
385385
@ </div></form>
386386
if( !isSandbox ){
387387
manifest_clear(&m);
388388
}
389
- style_footer_cmdref("wiki",0);
389
+ style_footer_cmdref("wiki"," / <a href=\"wiki_rules\">wiki format</a>");
390390
}
391391
392392
/*
393393
** WEBPAGE: wikinew
394394
** URL /wikinew
395395
--- src/wiki.c
+++ src/wiki.c
@@ -384,11 +384,11 @@
384 @ <input type="submit" name="cancel" value="Cancel" />
385 @ </div></form>
386 if( !isSandbox ){
387 manifest_clear(&m);
388 }
389 style_footer_cmdref("wiki",0);
390 }
391
392 /*
393 ** WEBPAGE: wikinew
394 ** URL /wikinew
395
--- src/wiki.c
+++ src/wiki.c
@@ -384,11 +384,11 @@
384 @ <input type="submit" name="cancel" value="Cancel" />
385 @ </div></form>
386 if( !isSandbox ){
387 manifest_clear(&m);
388 }
389 style_footer_cmdref("wiki"," / <a href=\"wiki_rules\">wiki format</a>");
390 }
391
392 /*
393 ** WEBPAGE: wikinew
394 ** URL /wikinew
395
+2 -1
--- www/index.wiki
+++ www/index.wiki
@@ -123,11 +123,12 @@
123123
* [./stats.wiki | Performance statistics] taken from real-world projects
124124
hosted on fossil.
125125
* How to [./shunning.wiki | delete content] from a fossil repository.
126126
* How Fossil does [./password.wiki | password management].
127127
* Some (unfinished but expanding) extended
128
- [./reference.wiki | reference documentation] for the fossil command line.
128
+ [./reference.wiki | reference documentation] for the fossil
129
+ [/help|command line].
129130
* Documentation on the
130131
[http://www.sqliteconcepts.org/THManual.pdf | TH1 Script Language] used
131132
to configure the ticketing subsystem.
132133
* A free hosting server for Fossil repositories is available at
133134
[http://chiselapp.com/].
134135
--- www/index.wiki
+++ www/index.wiki
@@ -123,11 +123,12 @@
123 * [./stats.wiki | Performance statistics] taken from real-world projects
124 hosted on fossil.
125 * How to [./shunning.wiki | delete content] from a fossil repository.
126 * How Fossil does [./password.wiki | password management].
127 * Some (unfinished but expanding) extended
128 [./reference.wiki | reference documentation] for the fossil command line.
 
129 * Documentation on the
130 [http://www.sqliteconcepts.org/THManual.pdf | TH1 Script Language] used
131 to configure the ticketing subsystem.
132 * A free hosting server for Fossil repositories is available at
133 [http://chiselapp.com/].
134
--- www/index.wiki
+++ www/index.wiki
@@ -123,11 +123,12 @@
123 * [./stats.wiki | Performance statistics] taken from real-world projects
124 hosted on fossil.
125 * How to [./shunning.wiki | delete content] from a fossil repository.
126 * How Fossil does [./password.wiki | password management].
127 * Some (unfinished but expanding) extended
128 [./reference.wiki | reference documentation] for the fossil
129 [/help|command line].
130 * Documentation on the
131 [http://www.sqliteconcepts.org/THManual.pdf | TH1 Script Language] used
132 to configure the ticketing subsystem.
133 * A free hosting server for Fossil repositories is available at
134 [http://chiselapp.com/].
135

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button