The Ash Framework homepage and documentation site.
Find a file
2024-03-30 16:58:54 -04:00
.github chore: Update CI/prod to use the same Elixir/Erlang versions as dev 2023-10-03 14:02:03 +08:00
.vscode
assets chore: remove FLAME and add ash_paper_trail 2024-01-31 09:35:47 -05:00
config chore: remove FLAME and add ash_paper_trail 2024-01-31 09:35:47 -05:00
iOS
lib fix: don't import release candidates into ash_hq 2024-03-30 16:58:54 -04:00
priv chore: remove FLAME and add ash_paper_trail 2024-01-31 09:35:47 -05:00
rel improvement: disable FLAME for now 2023-12-07 12:29:55 -05:00
scripts improvement: rewrite package search and storage to use sqlite 2023-10-12 18:08:34 -04:00
test chore: fix build/check 2023-01-18 00:15:34 -05:00
.check.exs
.credo.exs
.dockerignore
.formatter.exs improvement: remove sqlite 2024-01-12 12:43:25 -05:00
.gitignore improvement: rewrite package search and storage to use sqlite 2023-10-12 18:08:34 -04:00
.tool-versions improvement: add group-flow logo 2023-07-21 12:14:50 -04:00
CHANGELOG.md
dialyzer.ignore_warnings chore: fix build 2022-12-27 14:11:08 -05:00
Dockerfile chore: update now that we aren't using litefs 2024-01-12 14:24:22 -05:00
fly.toml improvement: remove sqlite 2024-01-12 12:43:25 -05:00
LICENSE.md
litefs.yml chore: updates, add new libraries 2023-12-19 12:21:42 -05:00
livebook.livemd
mix.exs improvement: remove sqlite 2024-01-12 12:43:25 -05:00
mix.lock chore: update import matcher to catch failures 2024-02-15 16:56:57 -05:00
README.md Update README.md 2023-02-04 07:44:51 -05:00

AshHq

Getting Started

  1. Fork and clone this repository.
  2. Set up the project by running mix do deps.get, deps.compile, setup
  3. Run mix import to import the latest dependencies from hex (this may take a while)
  4. Install the frontend assets by running npm i --prefix assets.
  5. Run the server with iex -S mix phx.server
  6. Open http://localhost:4000

Note to linux users: You will need the following packages (or their equivalents) to compile successfully: erlang-dev erlang-parsetools erlang-os-mon erlang-xmerl erlang-tools

A Bit of History

The docs are not static content like you would typically see for documentation. They are all stored in a database, because they can all be full-text searched using postgres. Eventually it would make sense to serve the individual doc pages from a CDN or something like that. The interesting pages in that regard is the Docs page. We do quite a bit of work to make sure that we are only loading the html that will be served for the exact document we are seeing.

The magic of search is done via AshHq.Docs.Extensions.Search, which modifies resources to make them full text searchable using postgres, amongst other things. See lib/ash_hq/docs/extensions/search/transformers/add_search_structure.ex for more.

There is also a usage of Ash.Flow for searching, which can be found in lib/ash_hq/docs/search/search.ex. It is actually a bit un-ideal, as the better thing to do would be to use a postgres UNION. There are ways to do that with Ash by extracting the resource queries and then making a union, but it was much easier to just put a search action in a flow. Eventually, Ash will support unions.