Skip to content

Commit ecfb693

Browse files
authored
feat: update tableau, mdex, tailwind (#26)
1 parent 6626457 commit ecfb693

5 files changed

Lines changed: 25 additions & 7 deletions

File tree

priv/templates/primary/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ mix deps.get
1111
mix tableau.server
1212
```
1313

14+
## Draft Posts and WIP Pages
15+
16+
Posts and pages that are not ready for production can be saved to the `_drafts` and `_wip` directories respectively.
17+
18+
These are controlled via application configuration, as seen in `config/dev.exs` and `config/prod.exs`
19+
1420
## Production Builds
1521

1622
To build for production, run the `mix build` alias to build your site and compile any assets (depends on what asset you chose when generating your site).

priv/templates/primary/config/config.exs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config :temple,
1919

2020
<%= if @assets == "tailwind" do %>
2121
config :tailwind,
22-
version: "4.0.9",
22+
version: "4.1.0",
2323
default: [
2424
args: ~w(
2525
--input=assets/css/site.css
@@ -34,14 +34,22 @@ config :tableau, :config,
3434
url: "http://localhost:4999",
3535
markdown: [
3636
mdex: [
37-
extension: [table: true, header_ids: "", tasklist: true, strikethrough: true],
38-
render: [unsafe_: true],
39-
features: [syntax_highlight_theme: "kanagawa"]
37+
extension: [
38+
table: true,
39+
header_ids: "",
40+
tasklist: true,
41+
strikethrough: true,
42+
autolink: true,
43+
alerts: true,
44+
footnotes: true
45+
],
46+
render: [unsafe: true],
47+
syntax_highlight: [formatter: {:html_inline, theme: "neovim_dark"}]
4048
]
4149
]
4250

4351
config :tableau, Tableau.PageExtension, enabled: true
44-
config :tableau, Tableau.PostExtension, enabled: true, future: true
52+
config :tableau, Tableau.PostExtension, enabled: true
4553
config :tableau, Tableau.DataExtension, enabled: true
4654
config :tableau, Tableau.SitemapExtension, enabled: true
4755

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
import Config
2+
3+
config :tableau, Tableau.PageExtension, dir: ["_pages", "_wip"]
4+
config :tableau, Tableau.PostExtension, future: true, dir: ["_posts", "_drafts"]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Config
22

33
config :tableau, :config, url: "https://example.com"
4-
config :tableau, Tableau.PostExtension, future: false
4+
config :tableau, Tableau.PostExtension, future: false, dir: ["_posts"]
5+
config :tableau, Tableau.PageExtension, dir: ["_pages"]

priv/templates/primary/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule <%= @app_module %>.MixProject do
2323
# Run "mix help deps" to learn about dependencies.
2424
defp deps do
2525
[
26-
{:tableau, "~> 0.17"}<%= if @assets == "tailwind" do %>,
26+
{:tableau, "~> 0.25"}<%= if @assets == "tailwind" do %>,
2727
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev}<% end %><%= if @template == "temple" do %>,
2828
{:temple, "~> 0.12"}<% end %><%= if @template == "heex" do %>,
2929
{:phoenix_live_view, "~> 1.0"}<% end %>

0 commit comments

Comments
 (0)