From d51fecaee1461636d22ab8f830a61158cdfd9ceb Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 17 Oct 2024 18:27:24 -0400 Subject: [PATCH] chore: update spark for docs fixes --- README.md | 4 ++-- .../{DSL:-AshAdmin.Domain.md => DSL-AshAdmin.Domain.md} | 0 .../{DSL:-AshAdmin.Resource.md => DSL-AshAdmin.Resource.md} | 0 documentation/tutorials/getting-started-with-ash-admin.md | 6 ++++-- mix.exs | 4 ++-- mix.lock | 4 ++-- 6 files changed, 10 insertions(+), 8 deletions(-) rename documentation/dsls/{DSL:-AshAdmin.Domain.md => DSL-AshAdmin.Domain.md} (100%) rename documentation/dsls/{DSL:-AshAdmin.Resource.md => DSL-AshAdmin.Resource.md} (100%) diff --git a/README.md b/README.md index dd3a34df..bdedb88e 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,5 @@ If you are using Phoenix LiveView 1.0.0 release candidate, you will need to use ## Reference -- [AshAdmin.Domain DSL](documentation/dsls/DSL:-AshAdmin.Domain.md) -- [AshAdmin.Resource DSL](documentation/dsls/DSL:-AshAdmin.Resource.md) +- [AshAdmin.Domain DSL](documentation/dsls/DSL-AshAdmin.Domain.md) +- [AshAdmin.Resource DSL](documentation/dsls/DSL-AshAdmin.Resource.md) diff --git a/documentation/dsls/DSL:-AshAdmin.Domain.md b/documentation/dsls/DSL-AshAdmin.Domain.md similarity index 100% rename from documentation/dsls/DSL:-AshAdmin.Domain.md rename to documentation/dsls/DSL-AshAdmin.Domain.md diff --git a/documentation/dsls/DSL:-AshAdmin.Resource.md b/documentation/dsls/DSL-AshAdmin.Resource.md similarity index 100% rename from documentation/dsls/DSL:-AshAdmin.Resource.md rename to documentation/dsls/DSL-AshAdmin.Resource.md diff --git a/documentation/tutorials/getting-started-with-ash-admin.md b/documentation/tutorials/getting-started-with-ash-admin.md index cca6962d..5b5a2ca0 100644 --- a/documentation/tutorials/getting-started-with-ash-admin.md +++ b/documentation/tutorials/getting-started-with-ash-admin.md @@ -20,7 +20,7 @@ Ensure your domains are configured in `config.exs`: config :my_app, ash_domains: [MyApp.Foo, MyApp.Bar] ``` -Add the `AshAdmin.Domain` extension to each domain you want to show in the AshAdmin dashboard, and configure it to show. See [DSL: AshAdmin.Domain](/documentation/dsls/DSL:-AshAdmin.Domain.md) for more configuration options. +Add the `AshAdmin.Domain` extension to each domain you want to show in the AshAdmin dashboard, and configure it to show. See [DSL: AshAdmin.Domain](/documentation/dsls/DSL-AshAdmin.Domain.md) for more configuration options. ```elixir # In your Domain(s) @@ -32,7 +32,7 @@ admin do end ``` -All resources in each Domain will automatically be included in AshAdmin. To configure a resource, use the `AshAdmin.Resource` extension, and then use the [DSL: AshAdmin.Resource](/documentation/dsls/DSL:-AshAdmin.Resource.md) configuration options. Specifically, if your app has an actor you will want to configure that. +All resources in each Domain will automatically be included in AshAdmin. To configure a resource, use the `AshAdmin.Resource` extension, and then use the [DSL: AshAdmin.Resource](/documentation/dsls/DSL-AshAdmin.Resource.md) configuration options. Specifically, if your app has an actor you will want to configure that. ```elixir # In your resource that acts as an actor (e.g. User) @@ -100,9 +100,11 @@ This will allow AshAdmin-generated inline CSS and JS blocks to execute normally. ## Troubleshooting #### UI issues + If your admin UI is not responding as expected, check your browser's developer console for content-security-policy violations (see above). #### Router issues + If you are seeing the following error `(UndefinedFunctionError) function YourAppWeb.AshAdmin.PageLive.__live__/0 is undefined (module YourAppWeb.AshAdmin.PageLive is not available)` it likely means that you added the ash admin route macro under a scope with a prefix. Make sure that you add it under a scope without any prefixes. ```elixir diff --git a/mix.exs b/mix.exs index 4d7d11d5..bb2e501c 100644 --- a/mix.exs +++ b/mix.exs @@ -58,8 +58,8 @@ defmodule AshAdmin.MixProject do "README.md", "documentation/tutorials/getting-started-with-ash-admin.md", "documentation/tutorials/contributing-to-ash-admin.md", - "documentation/dsls/DSL:-AshAdmin.Domain.md", - "documentation/dsls/DSL:-AshAdmin.Resource.md", + "documentation/dsls/DSL-AshAdmin.Domain.md", + "documentation/dsls/DSL-AshAdmin.Resource.md", "CHANGELOG.md" ], groups_for_extras: [ diff --git a/mix.lock b/mix.lock index cb97f2bf..69498a94 100644 --- a/mix.lock +++ b/mix.lock @@ -27,7 +27,7 @@ "git_cli": {:hex, :git_cli, "0.3.0", "a5422f9b95c99483385b976f5d43f7e8233283a47cda13533d7c16131cb14df5", [:mix], [], "hexpm", "78cb952f4c86a41f4d3511f1d3ecb28edb268e3a7df278de2faa1bd4672eaf9b"}, "git_ops": {:hex, :git_ops, "2.6.3", "38c6e381b8281b86e2911fa39bea4eab2d171c86d7428786566891efb73b68c3", [:mix], [{:git_cli, "~> 0.2", [hex: :git_cli, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "a81cb6c6a2a026a4d48cb9a2e1dfca203f9283a3a70aa0c7bc171970c44f23f8"}, "glob_ex": {:hex, :glob_ex, "0.1.10", "d819a368637495a5c1962ef34f48fe4e9a09032410b96ade5758f2cd1cc5fcde", [:mix], [], "hexpm", "c75357e57d71c85ef8ef7269b6e787dce3f0ff71e585f79a90e4d5477c532b90"}, - "igniter": {:hex, :igniter, "0.3.63", "ac27c466e6f779cf5f39d200a7d433cd91c8d465277e001661dc9b4680ca9eb3", [:mix], [{:glob_ex, "~> 0.1.7", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:rewrite, "~> 0.9", [hex: :rewrite, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.4", [hex: :sourceror, repo: "hexpm", optional: false]}, {:spitfire, ">= 0.1.3 and < 1.0.0-0", [hex: :spitfire, repo: "hexpm", optional: false]}], "hexpm", "5e24f71479cfd3575f79a767db51de0b38a633f05107b05d94ef1a54fde9093f"}, + "igniter": {:hex, :igniter, "0.3.64", "232801a7acb2de83a01033b2dba855ac1ce7cff28b28a70ed61589f56c2b14f7", [:mix], [{:glob_ex, "~> 0.1.7", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:rewrite, "~> 0.9", [hex: :rewrite, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.4", [hex: :sourceror, repo: "hexpm", optional: false]}, {:spitfire, ">= 0.1.3 and < 1.0.0-0", [hex: :spitfire, repo: "hexpm", optional: false]}], "hexpm", "df5e4c1a49220db1e397dd8b612656215fc187adc9e134b27b773c677be474e5"}, "inflex": {:hex, :inflex, "2.1.0", "a365cf0821a9dacb65067abd95008ca1b0bb7dcdd85ae59965deef2aa062924c", [:mix], [], "hexpm", "14c17d05db4ee9b6d319b0bff1bdf22aa389a25398d1952c7a0b5f3d93162dd8"}, "iterex": {:hex, :iterex, "0.1.2", "58f9b9b9a22a55cbfc7b5234a9c9c63eaac26d276b3db80936c0e1c60355a5a6", [:mix], [], "hexpm", "2e103b8bcc81757a9af121f6dc0df312c9a17220f302b1193ef720460d03029d"}, "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, @@ -56,7 +56,7 @@ "simple_sat": {:hex, :simple_sat, "0.1.3", "f650fc3c184a5fe741868b5ac56dc77fdbb428468f6dbf1978e14d0334497578", [:mix], [], "hexpm", "a54305066a356b7194dc81db2a89232bacdc0b3edaef68ed9aba28dcbc34887b"}, "sobelow": {:hex, :sobelow, "0.13.0", "218afe9075904793f5c64b8837cc356e493d88fddde126a463839351870b8d1e", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "cd6e9026b85fc35d7529da14f95e85a078d9dd1907a9097b3ba6ac7ebbe34a0d"}, "sourceror": {:hex, :sourceror, "1.6.0", "9907884e1449a4bd7dbaabe95088ed4d9a09c3c791fb0103964e6316bc9448a7", [:mix], [], "hexpm", "e90aef8c82dacf32c89c8ef83d1416fc343cd3e5556773eeffd2c1e3f991f699"}, - "spark": {:hex, :spark, "2.2.34", "1f0a3bd86d37f86a1d26db4a34d6b0e5fb091940aee25cd40041dab1397c8ada", [:mix], [{:igniter, ">= 0.3.36 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.2", [hex: :sourceror, repo: "hexpm", optional: false]}], "hexpm", "93f94b8f511a72f8764465ea32ff2e5376695f70e747884de2ce64bb6ac22a59"}, + "spark": {:hex, :spark, "2.2.35", "1c0bb30f340151eca24164885935de39e6ada4010555f444c813d0488990f8f3", [:mix], [{:igniter, ">= 0.3.64 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.2", [hex: :sourceror, repo: "hexpm", optional: false]}], "hexpm", "f242d6385c287389034a0e146d8f025b5c9ab777f1ae5cf0fdfc9209db6ae748"}, "spitfire": {:hex, :spitfire, "0.1.3", "7ea0f544005dfbe48e615ed90250c9a271bfe126914012023fd5e4b6b82b7ec7", [:mix], [], "hexpm", "d53b5107bcff526a05c5bb54c95e77b36834550affd5830c9f58760e8c543657"}, "splode": {:hex, :splode, "0.2.4", "71046334c39605095ca4bed5d008372e56454060997da14f9868534c17b84b53", [:mix], [], "hexpm", "ca3b95f0d8d4b482b5357954fec857abd0fa3ea509d623334c1328e7382044c2"}, "stream_data": {:hex, :stream_data, "1.1.2", "05499eaec0443349ff877aaabc6e194e82bda6799b9ce6aaa1aadac15a9fdb4d", [:mix], [], "hexpm", "129558d2c77cbc1eb2f4747acbbea79e181a5da51108457000020a906813a1a9"},