Commit Graph

35 Commits

Author SHA1 Message Date
Gabriel Gonzalez
39aaa86fb9
Revamp dhall-lang.org (#1526)
The main changes are:

* Rework the text substantially to match [the new
  "pitch"](https://discourse.dhall-lang.org/t/more-brainstorming-for-changing-the-dhall-lang-org-landing-page/101/18)
* Add a new "Hash" tab to the live demo
* Use the [new logo](https://github.com/dhall-lang/dhall-lang/pull/803)
2019-11-13 08:34:44 -08:00
Simon Jakobi
cd49b65c23 Move HsYAML-based code to new package dhall-yaml (#1514)
* Shared code for the dhall-to-yaml[-ng] executables stays in dhall-json.
* Shared tests are in dhall-yaml.

Fixes #1435.
2019-11-07 12:11:04 +00:00
Simon Jakobi
e931451a2b Format more text literals as multi-line strings (#1508)
This causes text literals to be formatted as multi-line strings
whenever they contain at least one newline and at least one non-newline
character. "Spacers" like `"\n\n"` continue be formatted as single-line
strings. If the heuristic turns out to be too eager to choose a
multi-line layout, we can refine it later.

This partially addresses #1496.

Also

* update some variable names

* use 80-column "smart" layout consistently
2019-11-04 03:31:49 +00:00
Simon Jakobi
458c873706 Website: List XML integration via dhall-xml-ruby (#1481) 2019-10-27 01:55:01 +00:00
Gabriel Gonzalez
d08ccfb384
Update website to use dhall-json for generating YAML (#1476)
Now that we depend on a pure Haskell implementation of YAML we can
use the `dhall-json` package for rendering YAML with GHCJS
2019-10-25 20:39:21 -07:00
Gabriel Gonzalez
7b414d9846
Version 1.26.1 → 1.27.0 (#1428) 2019-10-20 07:00:43 -07:00
Gabriel Gonzalez
65710954cf
Version 1.25.0 → 1.26.0 (#1286) 2019-09-11 19:37:25 -07:00
Gabriel Gonzalez
bfa6819282 Link to "Learn Dhall in Y minutes" tutorial from website (#1288) 2019-09-07 14:57:07 +00:00
Gabriel Gonzalez
d45f3ec46b
Version 1.24.0 → 1.25.0 (#1156) 2019-07-28 21:46:32 -07:00
Gabriel Gonzalez
1970aa3ef3
Fix CSS for dhall-lang.org in Safari (#1160)
Fixes https://github.com/dhall-lang/dhall-lang/issues/609

Safari requires a vertical alignment CSS directive in order to render the
input and output panes side-by-side
2019-07-28 06:53:43 -07:00
Gabriel Gonzalez
e0bd21e25d
Update web page (#1079)
The main improvements are:

* Add one-line summary of what Dhall is

  This is based on user feedback that some people could not tell what
  Dhall was based on the home page

* Replace "Tough on messes" section with "Integration friendly" section

  This is based on user feedback that the nethack example wasn't working
  for them and also because of a large number of questions in online
  discussions about how to integrate Dhall

* Fix tutorial examples to put public/private keys under `~/.ssh`

* Link to newly-added Wiki pages
2019-07-09 11:15:07 -07:00
Gabriel Gonzalez
fc5b382238
Version 1.23.0 → 1.24.0 (#984) 2019-06-06 17:14:43 -07:00
Gabriel Gonzalez
699cbf9020
Fix broken link (#953)
Fixes https://discourse.dhall-lang.org/t/broken-link-on-dhall-lang-org/87

... as caught by @philandstuff
2019-05-15 20:26:00 -07:00
Gabriel Gonzalez
bf4349ef7a
Version 1.22.0 → 1.23.0 (#943) 2019-05-11 13:03:42 -07:00
Gabriel Gonzalez
f7fecda09d
Version 1.21.0 → 1.22.0 (#910) 2019-04-27 20:17:34 -07:00
Stephen Paul Weber
d0fb71b0ba Add dhall-ruby to website (#892)
Co-Authored-By: singpolyma <singpolyma@singpolyma.net>
2019-04-13 21:08:34 -07:00
Gabriel Gonzalez
d8f2787745
Link to Discourse site from dhall-lang.org (#852) 2019-03-14 08:48:23 -07:00
Gabriel Gonzalez
e92a749904
Change language around security guarantee (#841)
Related to https://github.com/dhall-lang/dhall-lang/issues/333

This softens the language to point out that we can't guarantee
that we are secure against malicious expression but we do aim to be
and we don't settle for less.
2019-03-07 20:43:37 -08:00
Gabriel Gonzalez
e392657540
Version 1.20.1 → 1.21.0 (#839) 2019-03-06 20:49:41 -08:00
Gabriel Gonzalez
6a70f133a1
Version 1.19.1 → 1.20.0 (#767) 2018-12-29 11:48:21 -06:00
Gabriel Gonzalez
f8e31956e9
Fix first example on dhall-lang.org (#762)
Several people commented that they had difficulty with the first example:

* They didn't realize that the mistake was supposed to be typo because they
  never found it
* They didn't realize they were supposed to progress to the next tab

This changes fixes those two issues
2018-12-21 08:52:42 -06:00
Gabriel Gonzalez
2635c582eb
Add contributing instructions for the website (#760)
This is so that I can link people to the `README` if they are interested in
improving the site
2018-12-20 10:36:10 -08:00
Gabriel Gonzalez
374f42ad98
Fix live editor for dhall-lang.org (#759)
Setting the `display: none` style for `textarea`s makes them uneditable
2018-12-17 18:10:41 -08:00
Gabriel Gonzalez
34e1d79eaa
Additional fixes to dhall-lang.org (#758)
This updates `dhall-lang.org` with the following main changes:

* Greater emphasis on Dhall as a YAML alternative
    * New tagline: "A non-repetitive alternative to YAML"
    * YAML output now selected by default
* More prounounced call to action (i.e. "Get Started" button)
    * Now located in both navbar and in final section
* Fixed issues identified by Chrome's audit tool
    * Better SEO
    * Textual header
    * Alternative text for images
    * Slight improvements to Javascript loading
* Better support for mobile browsers
    * The input/output code panes will now vertically stack
2018-12-17 09:43:07 -08:00
Basile Henry
145d150e25 Fix link (#755) 2018-12-13 07:07:05 -08:00
Gabriel Gonzalez
615eccb10d
Expand main page with high-level reasons to adopt Dhall (#754)
This adds four new sections to the page after the live demo which highlight
the common themes that I notice people use when communicating the value of
Dhall to others on social media:

* The first section emphasizes the element of delight in using the language for
  people who are into elegance and quality

* The second section focuses on more pragmatic people who are sick of YAML and
  just want a reasonable alternative that they can convince their manager to
  adopt

* The third section appeals to the LangSec crowd that wants an uncompromising
  and secure foundation for what they are buliding

* The last section targeted at the skeptic who thinks that Dhall is an ivory
  tower language not suited for real-world problems.

The second crowd (YAML emigrants) is the audience that I'm targeting the
most strongly at the moment, but I didn't want to lead with a negative reason
adopt by focusing on the limitations of YAML, so I put the section on delight
first so that we could start with a more positive tone.
2018-12-13 06:44:33 -08:00
Gabriel Gonzalez
dfd9822e77
Add new "Type" and "YAML" output tabs to live demo (#753)
This moves the type annotation into a separate tab, both to avoid
the type cluttering the default output tab and to allow a display
mode that focuses on highlighting just the type.

This also adds a "YAML" output tab to gently suggest to the user
that Dhall is intended to be an alternative to YAML.  Unfortunately,
we can't use the Haskell `yaml` package to render to YAML when
building with GHCJS, but we can still perform the JSON-to-YAML
conversion in JavaScript.
2018-12-12 16:53:24 -08:00
Gabriel Gonzalez
ed30a6a394
Fix link to built-in operators on website (#751) 2018-12-11 05:19:03 -08:00
Gabriel Gonzalez
00315c1449
Fix kubernetes logo in list of integrations (#750)
The logo is an SVG file, not a PNG
2018-12-11 05:17:07 -08:00
Gabriel Gonzalez
d7d8139d39
Expand "Try dhall" into dhall-lang.org home page (#747)
This expands the "Try dhall" page to serve as a functional home page for
"dhall-lang.org" in the short term by making the following changes:

* Adding a navigation bar to the top that links to useful resources and
  official integrations
* Adding a quick summary explaining what Dhall is
2018-12-10 12:28:19 -08:00
Basile Henry
cdef63b28e try-dhall: Remove .pub from example private key (#748) 2018-12-10 08:28:08 -08:00
Gabriel Gonzalez
67ebf6efd6
Minify Javascript code generated by GHCJS (#745)
This reduces the size of the generated JavaScript code from ~15 MB to ~6 MB
2018-12-10 07:21:41 -08:00
Gabriel Gonzalez
c1e1ab1a13
Add an example of using imports (#746)
We can import expressions from `https://prelude.dhall-lang.org`
now that it provides CORS support.  See:

https://github.com/dhall-lang/dhall-lang/pull/315
2018-12-10 06:55:28 -08:00
Gabriel Gonzalez
e75469983d
Add "Try Dhall" examples and JSON output (#742)
This change sthe layout to a side-by-side split-pane output
and also adds tabs for each pane:

* Tabs for the left pane let you switch between examples
* Tabs for the right pane let you switch between output modes
2018-12-09 08:24:33 -08:00
Gabriel Gonzalez
cf69f5a953
Add "Try Dhall" project (#739)
This adds three new Nix build products:

* `try-dhall-static` - The static assets for "Try Dhall"
* `try-dhall-server` - A script which serves the static assets for local
   debugging
* `tarball-try-dhall` - A tarball of the static assets

This is powered by a new small `dhall-try` package which is also included
in this change.
2018-12-06 18:00:03 -08:00