aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends/Xhtml/Layout.hs
Commit message (Collapse)AuthorAgeFilesLines
* Track GHC PackageId to PackageKey renaming.Edward Z. Yang2014-07-211-1/+1
| | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Conflicts: src/Haddock/Interface/Create.hs
* Fix issue #281Niklas Haas2014-03-151-2/+6
| | | | | | | | | This is a regression from the data family instances change. Data instances are now distinguished from regular lists by usage of the new class "inst", and the style has been updated to only apply to those. I've also updated the appropriate test case to test this a bit better, including GADT instances with GADT-style records.
* Display minimal complete definitions for type classesNiklas Haas2014-03-131-0/+4
| | | | | | | | | This corresponds to the new {-# MINIMAL #-} pragma present in GHC 7.8+. I also cleaned up some of the places in which ExportDecl is used to make adding fields easier in the future. Lots of test cases have been updated since they now render with minimality information.
* Revert "Reorder topDeclElem to move the source/wiki links to the top"Niklas Haas2014-03-111-1/+1
| | | | | | | This reverts commit 843c42c4179526a2ad3526e4c7d38cbf4d50001d. This change is no longer needed with the new rendering style, and it messes with copy/pasting lines.
* Differentiate between TH splices (line-links) and regular namesNiklas Haas2014-03-091-4/+8
| | | | | | | | | | | | | | | | | This adds a new type of source code link, to a specific line rather than a specific declaration/name - this is used to link to the location of a TH splice that defines a certain name. Rather hefty changes throughout and still one unresolved issue (the line URLs aren't parsed from the third form of --read-interface which means they're currently restricted to same-interface links). Not sure if this issue is really worth all the hassle, especially since we could just use line links in general. This commit also contains some cleanup/clarification of the types in Haddock.Backends.Xhtml.Decl and shortens some overlong lines in the process. Notably, the Bool parameter was replaced by a Unicode type synonym to help clarify its presence in type signatures.
* Reorder topDeclElem to move the source/wiki links to the topNiklas Haas2014-03-091-1/+1
| | | | | They appear in the same position due to the float: right attribute but now they're always at the top of the box instead of at the bottom.
* Add support for type/data familiesnand2014-02-111-0/+5
| | | | | | | | This adds support for type/data families with their respective instances, as well as closed type families and associated type/data families. Signed-off-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
* Ensure a space between type signature and ‘Source’Mateusz Kowalczyk2014-02-101-2/+1
| | | | | | This is briefly related to Haddock Trac #249 and employs effectively the suggested fix _but_ it doesn't actually fix the reported issue. This commit simply makes copying the full line a bit less of a pain.
* Style police.David Waern2012-02-041-2/+2
|
* Make sure that generated xhtml is valid (close #186)Simon Hengel2012-01-121-0/+9
| | | | Thanks to Phyx.
* Fix buildIan Lynagh2011-06-171-1/+3
|
* * Merge in git patch from Michal TerepetaDavid Waern2011-06-111-3/+4
| | | | | | | | | | | | | | | | From 6fc71d067738ef4b7de159327bb6dc3d0596be29 Mon Sep 17 00:00:00 2001 From: Michal Terepeta <michal.terepeta@gmail.com> Date: Sat, 14 May 2011 19:18:22 +0200 Subject: [PATCH] Follow the change of TypeSig in GHC. This follows the change in GHC to make TypeSig take a list of names (instead of just one); GHC ticket #1595. This should also improve the Haddock output in case the user writes a type signature that refers to many names: -- | Some comment.. foo, bar :: ... will now generate the expected output with one signature for both names.
* hlint policeDavid Waern2010-11-161-5/+5
|
* Use "qual" as an abbreviation for qualification instead of "quali" for ↵David Waern2010-10-161-9/+9
| | | | consistency
* Solve conflictsDavid Waern2010-10-161-1/+2
|
* adding the option to fully qualify identifiersTobias Brandt2010-08-271-17/+17
|
* Add source entity path to --read-interfaceDavid Waern2010-08-291-2/+4
| | | | | | | | | | | | | You can now use this flag like this: --read-interface=<html path>,<source entity path>,<.haddock file> By "source entity path" I mean the same thing that is specified with the --source-entity flag. The purpose of this is to be able to specify the source entity path per package, to allow source links to work in the presence of cross-package documentation. When given two arguments or less the --read-interface flag behaves as before.
* Whitespace policeDavid Waern2010-08-281-1/+1
|
* clean up collapser logicsMark Lentczner2010-08-171-4/+5
| | | | | | | | javascript code for collapasble sections cleaned up rewrote class utilities in javascript to be more robust refactored utilities for generating collapsable sections made toc be same color as synopsis module list has needed clear attribute in CSS
* give a class to empty dd elements so they can be hiddenMark Lentczner2010-07-271-6/+2
|
* make module list use new collapsersMark Lentczner2010-07-261-3/+1
|
* change how collapsing sections are doneMark Lentczner2010-07-251-3/+7
| | | | | | make whole .caption be the target improve javascript for class toggling have plus/minus images come from .css, not img tags
* fields are def lists, tweak css for style menu, mini pages, argumentsMark Lentczner2010-07-241-4/+1
|
* tweaks for dl layout, though still not usedMark Lentczner2010-07-231-1/+3
|
* Style policeDavid Waern2010-07-211-2/+20
|
* Remove more trailing whitespaceDavid Waern2010-07-211-10/+10
|
* rename Haddock.Backends.Xhtml.Util to UtilsMark Lentczner2010-07-191-1/+1
|
* add .doc class to documentation blocksMark Lentczner2010-07-181-2/+2
|
* added content div to main pagesMark Lentczner2010-07-181-2/+3
|
* cleaned up div functions in Layout.hsMark Lentczner2010-07-181-17/+22
|
* fixed alphabet on index page, and styling of it and packages in module listsMark Lentczner2010-07-181-2/+3
|
* clean up Layout.hs: no more vanillaTableMark Lentczner2010-07-171-8/+4
|
* convert index.html to new markup, adjust module markupMark Lentczner2010-07-171-3/+5
|
* convert index to new markupMark Lentczner2010-07-161-1/+1
|
* reformat index-framesMark Lentczner2010-07-161-3/+6
|
* new output for mini_ pagesMark Lentczner2010-07-161-0/+5
|
* clean up synopsis listsMark Lentczner2010-07-141-8/+7
|
* methods and associated types in new layout schemeMark Lentczner2010-07-141-11/+18
|
* removing old table cruft from Layout.hsMark Lentczner2010-07-141-19/+1
|
* convert instances to SubDeclMark Lentczner2010-07-141-7/+10
|
* convert args to SubDecl formatMark Lentczner2010-07-141-0/+5
|
* made subDecl tables looks just soMark Lentczner2010-07-141-4/+16
|
* better interface to subDeclsMark Lentczner2010-07-141-10/+28
|
* constructors and args as dl lists, built in Layout.hsMark Lentczner2010-07-141-4/+14
|
* change to new page structureMark Lentczner2010-07-131-1/+35
|
* merge in changes from the big-whitespace cleanupMark Lentczner2010-05-241-2/+8
|
* remove unused bodyBoxMark Lentczner2010-04-251-3/+0
|
* fixed surround of instance and constructor tablesMark Lentczner2010-04-251-6/+6
|
* removed declWithDoc and cleaned up data decls in summaryMark Lentczner2010-04-121-11/+0
|
* all decls now generate Html not HtmlTableMark Lentczner2010-04-041-30/+16
| | | | | | | | | | | - ppDecl return Html, and so now do all of the functions it calls - added some internal tables to some decls, which is wrong, and will have to be fixed - decl "Box" functions became "Elem" functions to make clear they aren't in a table anymore (see Layout.hs) - docBox went away, as only used in one place (and its days are numbered) - cleaned up logic in a number of places, removed dead code - added maybeDocToHtml which simplified a number of places in the code