Skip to content

Commit

Permalink
Fix assets in documentation (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
oltarasenko committed May 14, 2020
1 parent 24950f6 commit deca4ea
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -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)

Expand Down
Binary file added documentation/assets/item_preview_example.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/assets/item_with_filters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/assets/items_page.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/assets/main_page.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 7 additions & 8 deletions 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
Expand Down Expand Up @@ -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)
16 changes: 15 additions & 1 deletion mix.exs
Expand Up @@ -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.
Expand Down

0 comments on commit deca4ea

Please sign in to comment.