-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add subsites for Cabal, GHC, GHCup and stack
Fixes #378
- Loading branch information
Showing
7 changed files
with
171 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: The Haskell Error Index | Cabal | ||
--- | ||
|
||
<h2>Welcome</h2> | ||
|
||
<p> | ||
This site describes error messages that can be returned by <a href="https://www.haskell.org/cabal/">Cabal</a>, including both errors and warnings. | ||
Every error and warning has a code that Cabal emits when you run into it—you can look them up below. | ||
</p> | ||
|
||
<p> | ||
So far, $messageCount$ Cabal errors and warnings are documented here. | ||
If you encounter a message that is not yet documented, please | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues">open an issue</a> or | ||
<a href="https://github.com/haskellfoundation/error-message-index/pulls">submit a pull request with documentation</a>. | ||
Pull requests with additional examples and improved explanations for | ||
existing messages are also very welcome, as are | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues?q=is%3Aissue+is%3Aopen+label%3Acss">improvements to the generated site</a>. | ||
</p> | ||
|
||
<p> | ||
This site is a project of <a href="https://haskell.foundation" target="_blank" rel="noopener noreferrer">The Haskell Foundation</a>. | ||
Please <a href="https://haskell.foundation/contact/" target="_blank" rel="noopener noreferrer">get in touch</a> if you have feedback or if you'd like to get involved! | ||
</p> | ||
|
||
$partial("templates/messages.html")$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: The Haskell Error Index | GHC | ||
--- | ||
|
||
<h2>Welcome</h2> | ||
|
||
<p> | ||
This site describes error messages that can be returned by <a href="https://www.haskell.org/ghc/">GHC</a>, including both errors and warnings. | ||
Every error and warning has a code that GHC emits when you run into it—you can look them up below. | ||
</p> | ||
|
||
<p> | ||
So far, $messageCount$ GHC errors and warnings are documented here. | ||
If you encounter a message that is not yet documented, please | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues">open an issue</a> or | ||
<a href="https://github.com/haskellfoundation/error-message-index/pulls">submit a pull request with documentation</a>. | ||
Pull requests with additional examples and improved explanations for | ||
existing messages are also very welcome, as are | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues?q=is%3Aissue+is%3Aopen+label%3Acss">improvements to the generated site</a>. | ||
</p> | ||
|
||
<p> | ||
This site is a project of <a href="https://haskell.foundation" target="_blank" rel="noopener noreferrer">The Haskell Foundation</a>. | ||
Please <a href="https://haskell.foundation/contact/" target="_blank" rel="noopener noreferrer">get in touch</a> if you have feedback or if you'd like to get involved! | ||
</p> | ||
|
||
$partial("templates/messages.html")$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: The Haskell Error Index | GHCup | ||
--- | ||
|
||
<h2>Welcome</h2> | ||
|
||
<p> | ||
This site describes error messages that can be returned by <a href="https://www.haskell.org/ghcup/">GHCup</a>, including both errors and warnings. | ||
Every error and warning has a code that GHCup emits when you run into it—you can look them up below. | ||
</p> | ||
|
||
<p> | ||
So far, $messageCount$ GHCup errors and warnings are documented here. | ||
If you encounter a message that is not yet documented, please | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues">open an issue</a> or | ||
<a href="https://github.com/haskellfoundation/error-message-index/pulls">submit a pull request with documentation</a>. | ||
Pull requests with additional examples and improved explanations for | ||
existing messages are also very welcome, as are | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues?q=is%3Aissue+is%3Aopen+label%3Acss">improvements to the generated site</a>. | ||
</p> | ||
|
||
<p> | ||
This site is a project of <a href="https://haskell.foundation" target="_blank" rel="noopener noreferrer">The Haskell Foundation</a>. | ||
Please <a href="https://haskell.foundation/contact/" target="_blank" rel="noopener noreferrer">get in touch</a> if you have feedback or if you'd like to get involved! | ||
</p> | ||
|
||
$partial("templates/messages.html")$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: The Haskell Error Index | Stack | ||
--- | ||
|
||
<h2>Welcome</h2> | ||
|
||
<p> | ||
This site describes error messages that can be returned by <a href="https://docs.haskellstack.org/en/stable/">Stack</a>, including both errors and warnings. | ||
Every error and warning has a code that Stack emits when you run into it—you can look them up below. | ||
</p> | ||
|
||
<p> | ||
So far, $messageCount$ Stack errors and warnings are documented here. | ||
If you encounter a message that is not yet documented, please | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues">open an issue</a> or | ||
<a href="https://github.com/haskellfoundation/error-message-index/pulls">submit a pull request with documentation</a>. | ||
Pull requests with additional examples and improved explanations for | ||
existing messages are also very welcome, as are | ||
<a href="https://github.com/haskellfoundation/error-message-index/issues?q=is%3Aissue+is%3Aopen+label%3Acss">improvements to the generated site</a>. | ||
</p> | ||
|
||
<p> | ||
This site is a project of <a href="https://haskell.foundation" target="_blank" rel="noopener noreferrer">The Haskell Foundation</a>. | ||
Please <a href="https://haskell.foundation/contact/" target="_blank" rel="noopener noreferrer">get in touch</a> if you have feedback or if you'd like to get involved! | ||
</p> | ||
|
||
$partial("templates/messages.html")$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
$body$ | ||
<h2>The Messages</h2> | ||
|
||
<script src="/js/tablefilter.js"></script> | ||
|
||
$partial("templates/message-list.html")$ | ||
|
||
<script> | ||
var filtersConfig = { | ||
base_path: '/wrong-on-purpose/', | ||
auto_filter: { | ||
delay: 75 //milliseconds | ||
}, | ||
single_filter: true | ||
}; | ||
var tf = new TableFilter(document.querySelector('.message-list'), filtersConfig); | ||
tf.init(); | ||
|
||
var input = document.querySelector('.single_flt'); | ||
|
||
if (input) { | ||
input.setAttribute("placeholder", "🔍 Type here to filter ..."); | ||
input.focus(); | ||
|
||
//Autofill the search from the URL | ||
let url = new URL(document.location.href); | ||
let query = url.searchParams.get('q'); | ||
if(query !== null) | ||
{ | ||
input.setAttribute('value',query) | ||
//Move cursor to end | ||
input.setSelectionRange(query.length,query.length); | ||
|
||
//Make sure that the list gets filtered as if the query had been typed manually | ||
input.dispatchEvent(new KeyboardEvent('keyup')); | ||
|
||
} | ||
} | ||
|
||
</script> |