Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
03d693b2
Commit
03d693b2
authored
2 years ago
by
Ben Gamari
Committed by
Marge Bot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Hadrian: fix doc generation"
This is too large of a hammer. This reverts commit
5640cb1d
.
parent
2cb500a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hadrian/src/Rules/Documentation.hs
+1
-13
1 addition, 13 deletions
hadrian/src/Rules/Documentation.hs
hadrian/src/Rules/Generate.hs
+2
-5
2 additions, 5 deletions
hadrian/src/Rules/Generate.hs
with
3 additions
and
18 deletions
hadrian/src/Rules/Documentation.hs
+
1
−
13
View file @
03d693b2
...
...
@@ -12,7 +12,7 @@ import Hadrian.BuildPath
import
Hadrian.Haskell.Cabal
import
Hadrian.Haskell.Cabal.Type
import
Rules.Generate
(
ghcPrimDependencies
,
generateTemplateResults
)
import
Rules.Generate
(
ghcPrimDependencies
)
import
Base
import
Context
import
Expression
(
getContextData
,
interpretInContext
,
(
?
),
package
)
...
...
@@ -68,12 +68,6 @@ pathPath "users_guide" = "docs/users_guide"
pathPath
"Haddock"
=
"utils/haddock/doc"
pathPath
_
=
""
-- Generate files required to build the docs (e.g. ghc.cabal)
needDocDeps
::
Action
()
needDocDeps
=
do
-- build .cabal files used by the doc engine to list package versions
generateTemplateResults
-- | Build all documentation
documentationRules
::
Rules
()
documentationRules
=
do
...
...
@@ -194,9 +188,6 @@ buildSphinxHtml :: FilePath -> Rules ()
buildSphinxHtml
path
=
do
root
<-
buildRootRules
root
-/-
htmlRoot
-/-
path
-/-
"index.html"
%>
\
file
->
do
needDocDeps
let
dest
=
takeDirectory
file
rstFilesDir
=
pathPath
path
rstFiles
<-
getDirectoryFiles
rstFilesDir
[
"**/*.rst"
]
...
...
@@ -310,9 +301,6 @@ buildSphinxPdf :: FilePath -> Rules ()
buildSphinxPdf
path
=
do
root
<-
buildRootRules
root
-/-
pdfRoot
-/-
path
<.>
"pdf"
%>
\
file
->
do
needDocDeps
withTempDir
$
\
dir
->
do
let
rstFilesDir
=
pathPath
path
rstFiles
<-
getDirectoryFiles
rstFilesDir
[
"**/*.rst"
]
...
...
This diff is collapsed.
Click to expand it.
hadrian/src/Rules/Generate.hs
+
2
−
5
View file @
03d693b2
...
...
@@ -2,7 +2,7 @@ module Rules.Generate (
isGeneratedCmmFile
,
compilerDependencies
,
generatePackageCode
,
generateRules
,
copyRules
,
generatedDependencies
,
ghcPrimDependencies
,
templateRules
,
generateTemplateResults
templateRules
)
where
import
qualified
Data.Set
as
Set
...
...
@@ -243,6 +243,7 @@ templateResults =
,
"driver/ghci/ghci-wrapper.cabal"
,
"ghc/ghc-bin.cabal"
,
"utils/iserv/iserv.cabal"
,
"utils/iserv-proxy/iserv-proxy.cabal"
,
"utils/remote-iserv/remote-iserv.cabal"
,
"utils/runghc/runghc.cabal"
,
"libraries/ghc-boot/ghc-boot.cabal"
...
...
@@ -255,10 +256,6 @@ templateResults =
,
"libraries/prologue.txt"
]
-- | Generate all the files we know we have a template for
generateTemplateResults
::
Action
()
generateTemplateResults
=
need
templateResults
templateRules
::
Rules
()
templateRules
=
do
templateResults
|%>
\
out
->
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment