From 231a163dadec31de1f6a3e41a01bd22ac7ee3e21 Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Sat, 3 Sep 2011 09:08:11 +0000 Subject: [PATCH] All temporary updates to make reference.xml SPARKLE! It looks pretty damn sweet right now, but it could definitely still do with some work. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6635 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- docs/css/oldrefcss.css | 234 ++++++++++++++++++++++++ docs/css/referencexml.css | 83 +++++++++ docs/transformations/cuberef2xhtml.xslt | 138 ++++++++------ 3 files changed, 394 insertions(+), 61 deletions(-) create mode 100644 docs/css/oldrefcss.css create mode 100644 docs/css/referencexml.css diff --git a/docs/css/oldrefcss.css b/docs/css/oldrefcss.css new file mode 100644 index 00000000..ead3af45 --- /dev/null +++ b/docs/css/oldrefcss.css @@ -0,0 +1,234 @@ +/* ZLIB licensed, (C) 2007 Adrian 'driAn' Henke, http://www.sprintf.org */ + +/* + styles for the reference - the old one, HACKED TO PIECES!! + + +this file can be as messy as whatever, it's gonna be deleted eventually :) +*/ + + +/* fix positioned menu */ + +div#fixedmenu a +{ + visibility: visible; + position: fixed; + padding: 5px; + left: 10px; + bottom: 10px; + font-size: 16px; + font-family: Courier New, Sans-Serif; + font-weight: bold; + text-decoration: none; + border: solid 2px black; + background-color: #444444; + color: Black; +} + +body > div#fixedmenu a /* broken browsers will ignore this and therefore keep the menu hidden */ +{ + visibility: visible; +} + +div#fixedmenu a:hover +{ + background-color: #555555; +} + + + +/* contents */ + +div#contents +{ + +} + +/* identifier */ + +div.section div.identifier +{ + padding: 0 0 10px 0; + margin: 0 0 0 20px; +} + +/* display name */ + +div.section div.identifier div.displayname +{ + font-family: Courier New, Sans-Serif; + margin: 1em 0 1em -20px; +} + +div.section div.identifier div.displayname a +{ + color: #007190; + text-decoration: none; +} + +/* command arguments */ + +div.section div.identifier div.argumentDescriptions +{ + margin: 10px 0 0 0; + padding: 0; +} + +div.section div.identifier div.argumentDescriptions table +{ + margin: 0; + padding: 0; + border-collapse: collapse; + width : 100%; + +} + +div.section div.identifier div.argumentDescriptions table td +{ + border: solid 1px #777777; +} + +div.section div.identifier div.argumentDescriptions table th +{ + font-weight: normal; + color: #333333; + background-color: #777777; + border: solid 1px #777777; +} + +div.section div.identifier div.argumentDescriptions table tr td.token +{ + font-style: italic; + width: 65px; +} + +div.section div.identifier div.argumentDescriptions table tr td.description +{ + width: 300px; +} + +div.section div.identifier div.argumentDescriptions table tr td.values +{ + +} + +/* variable value */ + +div.section div.identifier div.valueDescription +{ + margin: 10px 0 0 0; + padding: 0; +} + +div.section div.identifier div.valueDescription table +{ + margin: 0; + padding: 0; + border-collapse: collapse; + width: 100%; +} + +div.section div.identifier div.valueDescription table td +{ + border: solid 1px #777777; +} + +div.section div.identifier div.valueDescription table th +{ + font-weight: normal; + color: #333333; + background-color: #777777; + border: solid 1px #777777; +} + +div.section div.identifier div.valueDescription table tr td.token +{ + font-style: italic; + width: 65px; +} + +div.section div.identifier div.valueDescription table tr td.description +{ +} + +div.section div.identifier div.valueDescription table tr td.values +{ + width: 200px; +} + +div.section div.identifier div.valueDescription table tr td.range +{ + width: 50px; +} + +div.section div.identifier div.valueDescription table tr td.defaultValue +{ + text-align: right; + width: 50px; +} + +/* remarks */ + +div.section div.identifier div.remarks +{ + margin: 10px 0 0 0; + padding: 0; +} + +div.section div.identifier div.remarks div.remark +{ + margin: 10px 0 0 0; +} + +/* references */ + +div.section div.identifier div.references +{ + margin: 10px 0 0 0; + padding: 0; +} + + +div.section div.identifier div.references a.internal +{ + font-family: Courier New, Sans-Serif; + text-decoration: none; +} + +div.section div.identifier div.references a.external +{ + +} + +div.section div.identifier div.references span.none +{ + +} + +/* examples */ + +div.section div.identifier div.examples +{ + margin: 0; + padding : 0; +} + +div.section div.identifier div.examples div.code +{ + margin: 10px 0 10px 0; + padding: 0; +} + +div.section div.identifier div.examples div.exampleExplanation +{ + margin: 0; + padding: 0; +} + + +/* return value */ + +div.section div.identifier div.return +{ +} diff --git a/docs/css/referencexml.css b/docs/css/referencexml.css new file mode 100644 index 00000000..1c3d5687 --- /dev/null +++ b/docs/css/referencexml.css @@ -0,0 +1,83 @@ +/* side contentspanel */ + +.docsmain { +clear : none; +float : left; +width : 720px; +} + +#gohome { +width : 720px; +} + +.commandlist { +margin-top : 15px; +font-size : 17px; +text-align : center; +padding : 5px 0px; +font-family : "Trebuchet MS", Arial, Helvetica, sans-serif; +color: #FFFFFF; +border : solid 2px #00303D; +background-color: #101010; +float: right; +clear : right; +width : 136px; +} + +div#contentspanel +{ +margin-top : 10px; +float: right; +clear : right; +width: 140px; +word-wrap: break-word; +margin-left : 10px; +font-family : "Trebuchet MS", Arial, Helvetica, sans-serif; +font-size: 10px; +text-align: left; +background-color: #101010; +} + +div#contentspanel div.sectiontitle +{ + padding-left: 10px; + height: 20px; +background-color: #252525; +border-bottom : solid 1px #000000; + font-size: 14px; + font-weight: bold; +margin : 0px; +line-height : 20px; +white-space: nowrap; +} + +div#contentspanel ul +{ + list-style-type: none; + padding: 0; + padding-left : -10px; + margin: 10px; + +} + +div#contentspanel a +{ + text-decoration: none; + color: #E0E0E0; +} + +div#contentspanel div.identifiers a +{ + display: block; + position: relative; + width: 110px; + overflow: hidden; +} + +div#contentspanel div.identifiers a:hover +{ + width: 110px; + border-right: solid 10px #777777; + background-color: #666666; + +} diff --git a/docs/transformations/cuberef2xhtml.xslt b/docs/transformations/cuberef2xhtml.xslt index 9bddb60f..c6f671a5 100644 --- a/docs/transformations/cuberef2xhtml.xslt +++ b/docs/transformations/cuberef2xhtml.xslt @@ -1,12 +1,7 @@ - - - - - - - + + + + @@ -43,69 +38,57 @@ - - <xsl:value-of select="@name"/> - - - - + + + + + AssaultCube Documentation :: CubeScript command reference + + + + + + + + - - -
- TOP -
-
- +
+
+ AssaultCube Documentation +
+ + +
+ +
+ TOP +
+

+ CubeScript command reference +

+ + - -
-

- -

-
- -
- - - - -
- -
    - - -
  • - -
  • -
    -
-
-
-
-
-
-

+

Contents -

+

@@ -369,8 +352,41 @@
+ +
+ CubeScript command & variable list +
+
+ + + + +
+ +
    + + +
  • + +
  • +
    +
+
+
+
+
+
+
- +