summaryrefslogtreecommitdiff
path: root/usr/gri/pretty/docprinter.go
AgeCommit message (Collapse)AuthorFilesLines
2009-04-25- renamed docprinter.go -> doc.goRobert Griesemer1-545/+0
- adjusted dependent files (no changes in doc.go) TBR=rsc OCL=27860 CL=27860
2009-04-21allow godoc to match on regular expressions.Rob Pike1-0/+19
if the name contains a metacharacter, use regexp matching; otherwise require strict equality. now godoc flag '.*Var' can give you all the FooVar functions. R=gri DELTA=19 (19 added, 0 deleted, 0 changed) OCL=27711 CL=27713
2009-04-21remove lots of accumulated crud:Robert Griesemer1-4/+0
- delete utility files which contained functionality that is now elsewhere (or saved the files away for now) - cleanup Makefile (remove unnecessary deps) - minor adjustments to godoc, fixed a couple of bugs - make pretty.go self-contained TBR=r DELTA=625 (81 added, 510 deleted, 34 changed) OCL=27700 CL=27702
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox1-3/+3
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-15godoc: use data-driven templates for html, text generationRuss Cox1-251/+307
R=gri DELTA=1341 (668 added, 282 deleted, 391 changed) OCL=27485 CL=27526
2009-04-03Daily snapshot.Robert Griesemer1-30/+37
- godoc now supports the following url prefixes: /doc/ for package documentation /file/ for files (directories, html, and .go files) /spec for the spec /mem for the memory model - formatting of comments has been fixed - tons of minor cleanups (still more to do) Still missing: - pretty printing of source is not as pretty as it used to be (still a relict from the massive AST cleanup which has't quite made it's way everywhere) - documentation entries should be sorted - comments in code is not printed or not properly printed TBR=r DELTA=416 (182 added, 100 deleted, 134 changed) OCL=27078 CL=27078
2009-04-02- don't show methods of non-exported typesRobert Griesemer1-5/+7
(even if the methods are exported) R=rsc OCL=27056 CL=27056
2009-04-02- moved functions before types in doc output (per rsc)Robert Griesemer1-6/+6
- use /src and /doc prefix in URL to distinguish output type (per rsc) - fixed a bug in an internal string function - ignore files ending in _test.go (consider them test files) R=rsc OCL=27054 CL=27054
2009-04-02Daily snapshot:Robert Griesemer1-62/+46
first round of cleanups: - removed extra .html templates (reduced to one) - removed dependencies on various local files - minor fixes throughout Basic docserver is now operational: Automatically finds all (multi-file) packages under a root and serves either file or package documentation. R=r OCL=27049 CL=27049
2009-04-02- adjustments for changed ASTRobert Griesemer1-8/+8
- renamed gds -> godoc - functionality to find and serve packages (to get a list of packages provide dir path + "?p") Next steps: cleanups, better formatting, fine-tuning of output R=r OCL=27037 CL=27039
2009-04-02Adjustements related to AST changes.Robert Griesemer1-64/+50
R=r OCL=27026 CL=27028
2009-04-01More gds functionality:Robert Griesemer1-101/+200
- package headers - constants - variables - formatted comments Next steps: - sorted output - collection of all files belonging to a package - fine-tuning of output R=r OCL=26997 CL=26997
2009-03-31- also associate factory methods to a type in documentationRobert Griesemer1-30/+69
R=r OCL=26974 CL=26976
2009-03-31daily snapshot:Robert Griesemer1-33/+223
- adjustments to match new ast/parser interface - removed printer.go; functionality now in astprinter.go and docprinter.go (more cleanups pending) - enabled new doc printing in gds (lots of fine tuning missing, but pieces falling into place; e.g. methods associated with types. Consts, Vars, to come. Collection of all files belonging to a package to come) R=r OCL=26970 CL=26972
2009-03-30daily snapshot:Robert Griesemer1-0/+167
- separating printing of AST and documentation - astprinter: will subsume ast printing functionality of printer - docprinter: will subsume doc printing functionality of printer also: more logic to collect all the documentation pertaining to all files of a package - parser: some cleanups, stricter syntax checks - gds: hooks to test new doc printer (disabled) R=r OCL=26915 CL=26915