Fossil SCM

Wrapped the TH1 vars declared for custom skinning in backticks for better MD formatting, avoiding the need to escape underscores to prevent them from being interpreted as requesting italics. Fixed a typo in one of the variable names while in there; the visual noise of one of these escaped underscores hid the typo.

wyoung 2024-01-29 17:56 trunk
Commit 3b505e6f5567eb174454b0906e75aea909ea0237a754e31c0583a31ffe84cc13
1 file changed +19 -19
+19 -19
--- www/customskin.md
+++ www/customskin.md
@@ -418,73 +418,73 @@
418418
419419
Before expanding the TH1 within the header and footer, Fossil first
420420
initializes a number of TH1 variables to values that depend on
421421
repository settings and the specific page being generated.
422422
423
- * **project_name** - The project_name variable is filled with the
423
+ * **`project_name`** - The project_name variable is filled with the
424424
name of the project as configured under the Admin/Configuration
425425
menu.
426426
427
- * **project_description** - The project_description variable is
427
+ * **`project_description`** - The project_description variable is
428428
filled with the description of the project as configured under
429429
the Admin/Configuration menu.
430430
431
- * **title** - The title variable holds the title of the page being
431
+ * **`title`** - The title variable holds the title of the page being
432432
generated.
433433
434434
The title variable is special in that it is deleted after
435435
the header script runs and before the footer script. This is
436436
necessary to avoid a conflict with a variable by the same name used
437437
in my ticket-screen scripts.
438438
439
- * **baseurl** - The root of the URL namespace for this server.
439
+ * **`baseurl`** - The root of the URL namespace for this server.
440440
441
- * **secureurl** - The same as $baseurl except that if the scheme is
441
+ * **`secureurl`** - The same as $baseurl except that if the scheme is
442442
"http:" it is changed to "https:"
443443
444
- * **home** - The $baseurl without the scheme and hostname. For example,
444
+ * **`home`** - The $baseurl without the scheme and hostname. For example,
445445
if the $baseurl is "http://projectX.com/cgi-bin/fossil" then the
446446
$home will be just "/cgi-bin/fossil".
447447
448
- * **index_page** - The landing page URI as
448
+ * **`index_page`** - The landing page URI as
449449
specified by the Admin/Configuration setup page.
450450
451
- * **current_page** - The name of the page currently being processed,
451
+ * **`current_page`** - The name of the page currently being processed,
452452
without the leading "/" and without query parameters.
453453
Examples: "timeline", "doc/trunk/README.txt", "wiki".
454454
455
- * **csrf_token** - A token used to prevent cross-site request forgery.
455
+ * **`csrf_token`** - A token used to prevent cross-site request forgery.
456456
457
- * **default_csp** - [Fossil’s default CSP](./defcsp.md) unless
457
+ * **`default_csp`** - [Fossil’s default CSP](./defcsp.md) unless
458458
[overridden by custom TH1 code](./defcsp.md#th1). Useful within
459459
the skin for inserting the CSP into a `<meta>` tag within [a
460460
custom `<head>` element](#headfoot).
461461
462
- * **nonce** - The value of the cryptographic nonce for the request
462
+ * **`nonce`** - The value of the cryptographic nonce for the request
463463
being processed.
464464
465
- * **release_version** - The release version of Fossil. Ex: "1.31"
465
+ * **`release_version`** - The release version of Fossil. Ex: "1.31"
466466
467
- * **manifest_version** - A prefix on the check-in hash of the
467
+ * **`manifest_version`** - A prefix on the check-in hash of the
468468
specific version of fossil that is running. Ex: "\[47bb6432a1\]"
469469
470
- * **manifest_date** - The date of the source-code check-in for the
470
+ * **`manifest_date`** - The date of the source-code check-in for the
471471
version of fossil that is running.
472472
473
- * **compiler_name** - The name and version of the compiler used to
473
+ * **`compiler_name`** - The name and version of the compiler used to
474474
build the fossil executable.
475475
476
- * **login** - This variable only exists if the user has logged in.
476
+ * **`login`** - This variable only exists if the user has logged in.
477477
The value is the username of the user.
478478
479
- * **stylesheet_url** - A URL for the internal style-sheet maintained
479
+ * **`stylesheet_url`** - A URL for the internal style-sheet maintained
480480
by Fossil.
481481
482
- * **log\_image\_url** - A URL for the logo image for this project, as
482
+ * **`logo_image_url`** - A URL for the logo image for this project, as
483483
configured on the Admin/Logo page.
484484
485
- * **background\_image\_url** - A URL for a background image for this
485
+ * **`background_image_url`** - A URL for a background image for this
486486
project, as configured on the Admin/Logo page.
487487
488488
All of the above are variables in the sense that either the header or the
489489
footer is free to change or erase them. But they should probably be treated
490490
as constants. New predefined values are likely to be added in future
491491
--- www/customskin.md
+++ www/customskin.md
@@ -418,73 +418,73 @@
418
419 Before expanding the TH1 within the header and footer, Fossil first
420 initializes a number of TH1 variables to values that depend on
421 repository settings and the specific page being generated.
422
423 * **project_name** - The project_name variable is filled with the
424 name of the project as configured under the Admin/Configuration
425 menu.
426
427 * **project_description** - The project_description variable is
428 filled with the description of the project as configured under
429 the Admin/Configuration menu.
430
431 * **title** - The title variable holds the title of the page being
432 generated.
433
434 The title variable is special in that it is deleted after
435 the header script runs and before the footer script. This is
436 necessary to avoid a conflict with a variable by the same name used
437 in my ticket-screen scripts.
438
439 * **baseurl** - The root of the URL namespace for this server.
440
441 * **secureurl** - The same as $baseurl except that if the scheme is
442 "http:" it is changed to "https:"
443
444 * **home** - The $baseurl without the scheme and hostname. For example,
445 if the $baseurl is "http://projectX.com/cgi-bin/fossil" then the
446 $home will be just "/cgi-bin/fossil".
447
448 * **index_page** - The landing page URI as
449 specified by the Admin/Configuration setup page.
450
451 * **current_page** - The name of the page currently being processed,
452 without the leading "/" and without query parameters.
453 Examples: "timeline", "doc/trunk/README.txt", "wiki".
454
455 * **csrf_token** - A token used to prevent cross-site request forgery.
456
457 * **default_csp** - [Fossil’s default CSP](./defcsp.md) unless
458 [overridden by custom TH1 code](./defcsp.md#th1). Useful within
459 the skin for inserting the CSP into a `<meta>` tag within [a
460 custom `<head>` element](#headfoot).
461
462 * **nonce** - The value of the cryptographic nonce for the request
463 being processed.
464
465 * **release_version** - The release version of Fossil. Ex: "1.31"
466
467 * **manifest_version** - A prefix on the check-in hash of the
468 specific version of fossil that is running. Ex: "\[47bb6432a1\]"
469
470 * **manifest_date** - The date of the source-code check-in for the
471 version of fossil that is running.
472
473 * **compiler_name** - The name and version of the compiler used to
474 build the fossil executable.
475
476 * **login** - This variable only exists if the user has logged in.
477 The value is the username of the user.
478
479 * **stylesheet_url** - A URL for the internal style-sheet maintained
480 by Fossil.
481
482 * **log\_image\_url** - A URL for the logo image for this project, as
483 configured on the Admin/Logo page.
484
485 * **background\_image\_url** - A URL for a background image for this
486 project, as configured on the Admin/Logo page.
487
488 All of the above are variables in the sense that either the header or the
489 footer is free to change or erase them. But they should probably be treated
490 as constants. New predefined values are likely to be added in future
491
--- www/customskin.md
+++ www/customskin.md
@@ -418,73 +418,73 @@
418
419 Before expanding the TH1 within the header and footer, Fossil first
420 initializes a number of TH1 variables to values that depend on
421 repository settings and the specific page being generated.
422
423 * **`project_name`** - The project_name variable is filled with the
424 name of the project as configured under the Admin/Configuration
425 menu.
426
427 * **`project_description`** - The project_description variable is
428 filled with the description of the project as configured under
429 the Admin/Configuration menu.
430
431 * **`title`** - The title variable holds the title of the page being
432 generated.
433
434 The title variable is special in that it is deleted after
435 the header script runs and before the footer script. This is
436 necessary to avoid a conflict with a variable by the same name used
437 in my ticket-screen scripts.
438
439 * **`baseurl`** - The root of the URL namespace for this server.
440
441 * **`secureurl`** - The same as $baseurl except that if the scheme is
442 "http:" it is changed to "https:"
443
444 * **`home`** - The $baseurl without the scheme and hostname. For example,
445 if the $baseurl is "http://projectX.com/cgi-bin/fossil" then the
446 $home will be just "/cgi-bin/fossil".
447
448 * **`index_page`** - The landing page URI as
449 specified by the Admin/Configuration setup page.
450
451 * **`current_page`** - The name of the page currently being processed,
452 without the leading "/" and without query parameters.
453 Examples: "timeline", "doc/trunk/README.txt", "wiki".
454
455 * **`csrf_token`** - A token used to prevent cross-site request forgery.
456
457 * **`default_csp`** - [Fossil’s default CSP](./defcsp.md) unless
458 [overridden by custom TH1 code](./defcsp.md#th1). Useful within
459 the skin for inserting the CSP into a `<meta>` tag within [a
460 custom `<head>` element](#headfoot).
461
462 * **`nonce`** - The value of the cryptographic nonce for the request
463 being processed.
464
465 * **`release_version`** - The release version of Fossil. Ex: "1.31"
466
467 * **`manifest_version`** - A prefix on the check-in hash of the
468 specific version of fossil that is running. Ex: "\[47bb6432a1\]"
469
470 * **`manifest_date`** - The date of the source-code check-in for the
471 version of fossil that is running.
472
473 * **`compiler_name`** - The name and version of the compiler used to
474 build the fossil executable.
475
476 * **`login`** - This variable only exists if the user has logged in.
477 The value is the username of the user.
478
479 * **`stylesheet_url`** - A URL for the internal style-sheet maintained
480 by Fossil.
481
482 * **`logo_image_url`** - A URL for the logo image for this project, as
483 configured on the Admin/Logo page.
484
485 * **`background_image_url`** - A URL for a background image for this
486 project, as configured on the Admin/Logo page.
487
488 All of the above are variables in the sense that either the header or the
489 footer is free to change or erase them. But they should probably be treated
490 as constants. New predefined values are likely to be added in future
491

Keyboard Shortcuts

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