Skip to content

Commit

Permalink
Documentation|Console: Improved docs for some commands and variables
Browse files Browse the repository at this point in the history
Also added a dry run mode for wikidocs.py.
  • Loading branch information
skyjake committed Apr 1, 2013
1 parent ab43456 commit d965e93
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 16 deletions.
14 changes: 14 additions & 0 deletions doomsday/build/scripts/wikidocs.py
@@ -1,5 +1,7 @@
import sys, os, subprocess

isDryRun = '--dry-run' in sys.argv

sys.path += ['/Users/jaakko/Dropbox/Scripts']
import dew

Expand Down Expand Up @@ -105,6 +107,10 @@ def appendCollectionToTitle(self, col):
page.mode = mode
pagesForCollection[col][title] = page

if isDryRun:
print page.title
print page.content

# Just the summary for the index.
templ = '@require{amestd}\n'
templ += '@macro{summary}{@arg}\n'
Expand Down Expand Up @@ -155,6 +161,14 @@ def appendCollectionToTitle(self, col):
for m in modes:
indexPage[m] += '\n[[Category:Console]]\n[[Category:References]]\n'

if isDryRun:
print indexPage['command']
print indexPage['variable']
for amb in ambigs:
print amb.title
print amb.content
sys.exit()


dew.login()

Expand Down
2 changes: 1 addition & 1 deletion doomsday/doc/engine/command/echo.ame
Expand Up @@ -3,5 +3,5 @@
}
@description{
@params{echo (text) ...} @cbr
@example{@cmd{echo "hello world"}}
@example{@code{echo "hello world"}}
}
2 changes: 1 addition & 1 deletion doomsday/doc/engine/command/load.ame
Expand Up @@ -3,5 +3,5 @@
}
@description{
@params{load (name) ...} @cbr
@example{@cmd{load (gamename)} or @cmd{load mylevel.wad}}
@example{@code{load (gamename)} or @code{load mylevel.wad}}
}
2 changes: 1 addition & 1 deletion doomsday/doc/libcommon/command/message.ame
Expand Up @@ -3,5 +3,5 @@
}
@description{
@params{message (text)} @cbr
@example{@cmd{message "this is a message"}}
@example{@code{message "this is a message"}}
}
10 changes: 9 additions & 1 deletion doomsday/doc/libcommon/command/savegame.ame
Expand Up @@ -2,5 +2,13 @@
Create a new game-save or open the save menu.
}
@description{
Params: savegame (game-save-name|<keyword>|save-slot-num) (new game-save-name) (confirm) @cbr Keywords: last, quick @cbr Examples: @cbr Open save menu: 'savegame' @cbr Saving to current "quick" slot: 'savegame quick "running low on ammo"' @cbr Saving to slot #0: 'savegame 0 "running low on ammo"'
@params{
savegame (game-save-name|<keyword>|save-slot-num)
(new game-save-name) (confirm) @cbr
Keywords: last, quick } @cbr
@example{
Open save menu: @code{savegame} @cbr
Saving to current "quick" slot: @code{savegame quick "running low on ammo"} @cbr
Saving to slot #0: @code{savegame 0 "running low on ammo"}
}
}
5 changes: 4 additions & 1 deletion doomsday/doc/libcommon/command/screenshot.ame
@@ -1,3 +1,6 @@
@summary{
Takes a screenshot.
Take a screenshot.
}
@description{
The screenshot is saved into the runtime directory.
}
3 changes: 3 additions & 0 deletions doomsday/doc/libcommon/variable/server-game-mod-gravity.ame
@@ -0,0 +1,3 @@
@summary{
World gravity modifier, multiplayer (-1..100). -1=Map default.
}
3 changes: 0 additions & 3 deletions doomsday/doc/libdoom/variable/server-game-mod-gravity.ame

This file was deleted.

3 changes: 0 additions & 3 deletions doomsday/doc/libheretic/variable/server-game-mod-gravity.ame

This file was deleted.

4 changes: 2 additions & 2 deletions doomsday/doc/libhexen/command/give.ame
Expand Up @@ -18,7 +18,7 @@
}
@cbr
@example{
@cmd{give ikw} gives items, keys and weapons. @cbr
@cmd{give w2k1} gives weapon two and key one.
@code{give ikw} gives items, keys and weapons. @cbr
@code{give w2k1} gives weapon two and key one.
}
}
3 changes: 0 additions & 3 deletions doomsday/doc/libhexen/variable/server-game-mod-gravity.ame

This file was deleted.

0 comments on commit d965e93

Please sign in to comment.