Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Version 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonholmgren committed Apr 13, 2019
1 parent d869ad9 commit 7ec49b9
Show file tree
Hide file tree
Showing 28 changed files with 172 additions and 171 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ yarn-error.log
nohup.out
yarn-error.log
package-lock.json
.vscode
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ _If you are having problems, view `README_INSTALL.md` for manual instructions._

```elixir
def deps do
[{:thesis, "~> 0.3.3"}]
[{:thesis, "~> 0.3.4"}]
end

def application do
Expand Down
2 changes: 1 addition & 1 deletion README_INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For automatic setup, see `README.md`.

```elixir
def deps do
[{:thesis, "~> 0.3.3"}]
[{:thesis, "~> 0.3.4"}]
end

def application do
Expand Down
4 changes: 2 additions & 2 deletions doc/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>404 — thesis v0.3.3</title>
<title>404 — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/404.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down
6 changes: 3 additions & 3 deletions doc/Mix.Tasks.Thesis.Install.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>thesis.install — thesis v0.3.3</title>
<title>thesis.install — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Mix.Tasks.Thesis.Install.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
mix thesis.install </h1>


Expand Down
16 changes: 8 additions & 8 deletions doc/Thesis.Auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>Thesis.Auth — thesis v0.3.3</title>
<title>Thesis.Auth — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Thesis.Auth.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
Thesis.Auth <small>behaviour</small> </h1>


Expand Down Expand Up @@ -125,14 +125,14 @@ <h1 class="signature">page_is_editable?(arg0)</span>
whether to load and display the Thesis editor and also whether to allow
updates to Thesis.Page and Thesis.PageContent areas.</p>
<p>Typical example:</p>
<pre><code class="nohighlight makeup elixir"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyApp.ThesisAuth</span><span class="w"> </span><span class="k" data-group-id="6689066158-1">do</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyApp.ThesisAuth</span><span class="w"> </span><span class="k" data-group-id="2353226362-1">do</span><span class="w">
</span><span class="na">@behaviour</span><span class="w"> </span><span class="nc">Thesis.Auth</span><span class="w">

</span><span class="kd">def</span><span class="w"> </span><span class="nf">page_is_editable?</span><span class="p" data-group-id="6689066158-2">(</span><span class="n">conn</span><span class="p" data-group-id="6689066158-2">)</span><span class="w"> </span><span class="k" data-group-id="6689066158-3">do</span><span class="w">
</span><span class="kd">def</span><span class="w"> </span><span class="nf">page_is_editable?</span><span class="p" data-group-id="2353226362-2">(</span><span class="n">conn</span><span class="p" data-group-id="2353226362-2">)</span><span class="w"> </span><span class="k" data-group-id="2353226362-3">do</span><span class="w">
</span><span class="n">conn</span><span class="w">
</span><span class="o">|&gt;</span><span class="w"> </span><span class="nc">MyApp.AuthController</span><span class="o">.</span><span class="n">current_user_is_admin?</span><span class="p" data-group-id="6689066158-4">(</span><span class="n">conn</span><span class="p" data-group-id="6689066158-4">)</span><span class="w">
</span><span class="k" data-group-id="6689066158-3">end</span><span class="w">
</span><span class="k" data-group-id="6689066158-1">end</span></code></pre>
</span><span class="o">|&gt;</span><span class="w"> </span><span class="nc">MyApp.AuthController</span><span class="o">.</span><span class="n">current_user_is_admin?</span><span class="p" data-group-id="2353226362-4">(</span><span class="n">conn</span><span class="p" data-group-id="2353226362-4">)</span><span class="w">
</span><span class="k" data-group-id="2353226362-3">end</span><span class="w">
</span><span class="k" data-group-id="2353226362-1">end</span></code></pre>
</section>
</section>
</div>
Expand Down
6 changes: 3 additions & 3 deletions doc/Thesis.Backup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>Thesis.Backup — thesis v0.3.3</title>
<title>Thesis.Backup — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Thesis.Backup.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
Thesis.Backup </h1>


Expand Down
6 changes: 3 additions & 3 deletions doc/Thesis.Controller.Plug.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>Thesis.Controller.Plug — thesis v0.3.3</title>
<title>Thesis.Controller.Plug — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Thesis.Controller.Plug.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
Thesis.Controller.Plug </h1>


Expand Down
16 changes: 8 additions & 8 deletions doc/Thesis.Controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>Thesis.Controller — thesis v0.3.3</title>
<title>Thesis.Controller — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Thesis.Controller.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,24 +59,24 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
Thesis.Controller </h1>


<section id="moduledoc">
<p>Provides a plug that preloads any Thesis content for a page.
Typically, you&#39;ll add this to your <code class="inline">web/web.ex</code> file, under the <code class="inline">controller</code>
function:</p>
<pre><code class="nohighlight makeup elixir"><span class="kd">def</span><span class="w"> </span><span class="nf">controller</span><span class="w"> </span><span class="k" data-group-id="3495209092-1">do</span><span class="w">
</span><span class="k">quote</span><span class="w"> </span><span class="k" data-group-id="3495209092-2">do</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="kd">def</span><span class="w"> </span><span class="nf">controller</span><span class="w"> </span><span class="k" data-group-id="5690757041-1">do</span><span class="w">
</span><span class="k">quote</span><span class="w"> </span><span class="k" data-group-id="5690757041-2">do</span><span class="w">
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Phoenix.Controller</span><span class="w">
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Thesis.Controller</span><span class="w">
</span><span class="c1"># ...</span><span class="w">
</span><span class="k" data-group-id="3495209092-2">end</span><span class="w">
</span><span class="k" data-group-id="3495209092-1">end</span></code></pre>
</span><span class="k" data-group-id="5690757041-2">end</span><span class="w">
</span><span class="k" data-group-id="5690757041-1">end</span></code></pre>
<p>If you&#39;d prefer to only use Thesis in certain controllers, remove it from
<code class="inline">web/web.ex</code> and add it to the specific controllers by doing this:</p>
<pre><code class="nohighlight makeup elixir"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyApp.MyController</span><span class="w"> </span><span class="k" data-group-id="4075825539-1">do</span><span class="w">
<pre><code class="nohighlight makeup elixir"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyApp.MyController</span><span class="w"> </span><span class="k" data-group-id="2917385829-1">do</span><span class="w">
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Thesis.Controller</span><span class="w">
</span><span class="c1"># ...</span></code></pre>
</section>
Expand Down
10 changes: 5 additions & 5 deletions doc/Thesis.EctoStore.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>Thesis.EctoStore — thesis v0.3.3</title>
<title>Thesis.EctoStore — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Thesis.EctoStore.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
Thesis.EctoStore </h1>


Expand Down Expand Up @@ -171,7 +171,7 @@ <h1 class="signature">backups(page_slug)</span>
</div>
<section class="docstring">
<p>Retrieves all backups for a given slug. Returns the backup.</p>
<pre><code class="nohighlight makeup elixir"><span class="n">backups</span><span class="p" data-group-id="9838564450-1">(</span><span class="n">slug</span><span class="p" data-group-id="9838564450-1">)</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="n">backups</span><span class="p" data-group-id="6774154053-1">(</span><span class="n">slug</span><span class="p" data-group-id="6774154053-1">)</span></code></pre>
<p>Callback implementation for <a href="Thesis.Store.html#c:backups/1"><code class="inline">Thesis.Store.backups/1</code></a>.</p>
</section>
</section>
Expand Down Expand Up @@ -261,7 +261,7 @@ <h1 class="signature">restore(id)</span>
</div>
<section class="docstring">
<p>Retrieves a given backup (identified by its id). Returns the backup.</p>
<pre><code class="nohighlight makeup elixir"><span class="n">restore</span><span class="p" data-group-id="2806719096-1">(</span><span class="n">backup_id</span><span class="p" data-group-id="2806719096-1">)</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="n">restore</span><span class="p" data-group-id="5570803725-1">(</span><span class="n">backup_id</span><span class="p" data-group-id="5570803725-1">)</span></code></pre>
<p>Callback implementation for <a href="Thesis.Store.html#c:restore/1"><code class="inline">Thesis.Store.restore/1</code></a>.</p>
</section>
</section>
Expand Down
6 changes: 3 additions & 3 deletions doc/Thesis.File.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.19.2">
<title>Thesis.File — thesis v0.3.3</title>
<title>Thesis.File — thesis v0.3.4</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<link rel="canonical" href="https://hexdocs.pm/thesis/Thesis.File.html" />
<script src="dist/sidebar_items-faefb02862.js"></script>
Expand All @@ -29,7 +29,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.3
v0.3.4
</h2>
</div>
</a>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.3</small>
<small class="visible-xs">thesis v0.3.4</small>
Thesis.File </h1>


Expand Down

0 comments on commit 7ec49b9

Please sign in to comment.