diff --git a/README.md b/README.md index 033e758e..1b3517d5 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,10 @@ You can read more here: The CrawlyUI project is an add-on that aims to provide an interface for managing and rapidly developing spiders. -![](doc/assets/main_page.png?raw=true) -![](doc/assets/items_page.png?raw=true) -![](doc/assets/item_with_filters.png?raw=true) -![](doc/assets/item_preview_example.png?raw=true) +![](documentation/assets/main_page.png?raw=true) +![](documentation/assets/items_page.png?raw=true) +![](documentation/assets/item_with_filters.png?raw=true) +![](documentation/assets/item_preview_example.png?raw=true) See more at [Experimental UI](https://hexdocs.pm/crawly/experimental_ui.html#content) diff --git a/documentation/assets/item_preview_example.png b/documentation/assets/item_preview_example.png new file mode 100644 index 00000000..e9e11fdf Binary files /dev/null and b/documentation/assets/item_preview_example.png differ diff --git a/documentation/assets/item_with_filters.png b/documentation/assets/item_with_filters.png new file mode 100644 index 00000000..54034e4f Binary files /dev/null and b/documentation/assets/item_with_filters.png differ diff --git a/documentation/assets/items_page.png b/documentation/assets/items_page.png new file mode 100644 index 00000000..c92ea2ad Binary files /dev/null and b/documentation/assets/items_page.png differ diff --git a/documentation/assets/main_page.png b/documentation/assets/main_page.png new file mode 100644 index 00000000..c4c3ff8b Binary files /dev/null and b/documentation/assets/main_page.png differ diff --git a/documentation/experimental_ui.md b/documentation/experimental_ui.md index 3762d302..151bac08 100644 --- a/documentation/experimental_ui.md +++ b/documentation/experimental_ui.md @@ -1,5 +1,4 @@ # Experimental UI ---- We believe that web scraping is a process. It might seem easy to extract first data items, however we believe that the data delivery requires a bit more efforts or @@ -60,10 +59,10 @@ For example: ## Gallery -![Main Page](assets/main_page.png?raw=true) --- -![Items browser](assets/items_page.png?raw=true) --- -![Items browser search](assets/item_with_filters.png?raw=true) --- -![Items browser](assets/item_preview_example.png?raw=true) +![Main Page](documentation/assets/main_page.png?raw=true) + +![Items browser](documentation/assets/items_page.png?raw=true) + +![Items browser search](documentation/assets/item_with_filters.png?raw=true) + +![Items browser](documentation/assets/item_preview_example.png?raw=true) diff --git a/mix.exs b/mix.exs index 82f67dc2..1544a510 100644 --- a/mix.exs +++ b/mix.exs @@ -17,10 +17,24 @@ defmodule Crawly.Mixfile do elixirc_paths: elixirc_paths(Mix.env()), docs: docs(), elixirc_options: [warnings_as_errors: true], - deps: deps() + deps: deps(), + aliases: aliases() ] end + defp aliases do + [ + generate_documentation: &generate_documentation/1, + ] + end + + defp generate_documentation(_) do + System.cmd("mix", ["docs"]) + System.cmd("mkdir", ["-p", "./doc/documentation/assets"]) + System.cmd("cp", ["-r", "documentation/assets", "doc/documentation"]) + end + + defp elixirc_paths(:test), do: ["lib", "test"] defp elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications.