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.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonholmgren committed Jan 15, 2019
1 parent 654515b commit d74c21c
Show file tree
Hide file tree
Showing 30 changed files with 247 additions and 197 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ _If you are having problems, view `README_INSTALL.md` for manual instructions._

```elixir
def deps do
[{:thesis, "~> 0.3.1"}]
[{:thesis, "~> 0.3.2"}]
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.1"}]
[{:thesis, "~> 0.3.2"}]
end

def application do
Expand Down
14 changes: 8 additions & 6 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@

#### Pushing a new release

1. run `npm run webpack` to build the static css/js files
1. run `yarn webpack` to build the static css/js files
1. run `mix hex.user whoami`
1. check if your hex user is in the [owner's list](https://hex.pm/packages/thesis) of the package (if not, you will need to get added as an owner)
1. update the version number in:
- `./mix.exs`
- `./package.json`
- `./README_INSTALL.md`
- `./README.md` (also update the changelog)

- `./mix.exs`
- `./package.json`
- `./README_INSTALL.md`
- `./README.md` (also update the changelog)

1. generate docs: `mix docs`
1. run `mix hex.publish`

#### Verify & Announce

1. you win.
1. you win.
2 changes: 1 addition & 1 deletion doc/.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dist/html/fonts/icomoon.eot
dist/html/fonts/icomoon.svg
dist/html/fonts/icomoon.ttf
dist/html/fonts/icomoon.woff
dist/sidebar_items-871fa3d7b4.js
dist/sidebar_items-faefb02862.js
api-reference.html
search.html
404.html
Expand Down
6 changes: 3 additions & 3 deletions doc/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>404 — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="extras">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down
8 changes: 4 additions & 4 deletions doc/Mix.Tasks.Thesis.Install.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>thesis.install — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="tasks">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,7 +58,7 @@ <h2 class="sidebar-projectVersion">


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


Expand Down
18 changes: 9 additions & 9 deletions doc/Thesis.Auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>Thesis.Auth — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="modules">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,7 +58,7 @@ <h2 class="sidebar-projectVersion">


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


Expand Down Expand Up @@ -124,14 +124,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="6174742980-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="6355458527-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="6174742980-2">(</span><span class="n">conn</span><span class="p" data-group-id="6174742980-2">)</span><span class="w"> </span><span class="k" data-group-id="6174742980-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="6355458527-2">(</span><span class="n">conn</span><span class="p" data-group-id="6355458527-2">)</span><span class="w"> </span><span class="k" data-group-id="6355458527-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="6174742980-4">(</span><span class="n">conn</span><span class="p" data-group-id="6174742980-4">)</span><span class="w">
</span><span class="k" data-group-id="6174742980-3">end</span><span class="w">
</span><span class="k" data-group-id="6174742980-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="6355458527-4">(</span><span class="n">conn</span><span class="p" data-group-id="6355458527-4">)</span><span class="w">
</span><span class="k" data-group-id="6355458527-3">end</span><span class="w">
</span><span class="k" data-group-id="6355458527-1">end</span></code></pre>
</section>
</section>
</div>
Expand Down
8 changes: 4 additions & 4 deletions doc/Thesis.Backup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>Thesis.Backup — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="modules">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,7 +58,7 @@ <h2 class="sidebar-projectVersion">


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


Expand Down
8 changes: 4 additions & 4 deletions doc/Thesis.Controller.Plug.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>Thesis.Controller.Plug — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="modules">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,7 +58,7 @@ <h2 class="sidebar-projectVersion">


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


Expand Down
18 changes: 9 additions & 9 deletions doc/Thesis.Controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>Thesis.Controller — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="modules">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,24 +58,24 @@ <h2 class="sidebar-projectVersion">


<h1>
<small class="visible-xs">thesis v0.3.1</small>
<small class="visible-xs">thesis v0.3.2</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="5786642992-1">do</span><span class="w">
</span><span class="k">quote</span><span class="w"> </span><span class="k" data-group-id="5786642992-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="0637977842-1">do</span><span class="w">
</span><span class="k">quote</span><span class="w"> </span><span class="k" data-group-id="0637977842-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="5786642992-2">end</span><span class="w">
</span><span class="k" data-group-id="5786642992-1">end</span></code></pre>
</span><span class="k" data-group-id="0637977842-2">end</span><span class="w">
</span><span class="k" data-group-id="0637977842-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="8319439909-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="3353822046-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
12 changes: 6 additions & 6 deletions doc/Thesis.EctoStore.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>Thesis.EctoStore — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="modules">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,7 +58,7 @@ <h2 class="sidebar-projectVersion">


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


Expand Down Expand Up @@ -170,7 +170,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="9180850336-1">(</span><span class="n">slug</span><span class="p" data-group-id="9180850336-1">)</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="n">backups</span><span class="p" data-group-id="0471619126-1">(</span><span class="n">slug</span><span class="p" data-group-id="0471619126-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 @@ -260,7 +260,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="3588618292-1">(</span><span class="n">backup_id</span><span class="p" data-group-id="3588618292-1">)</span></code></pre>
<pre><code class="nohighlight makeup elixir"><span class="n">restore</span><span class="p" data-group-id="1782321323-1">(</span><span class="n">backup_id</span><span class="p" data-group-id="1782321323-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
8 changes: 4 additions & 4 deletions doc/Thesis.File.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<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.1</title>
<title>Thesis.File — thesis v0.3.2</title>
<link rel="stylesheet" href="dist/html-c1666276880c0f8e3769.css" />
<script src="dist/sidebar_items-871fa3d7b4.js"></script>
<script src="dist/sidebar_items-faefb02862.js"></script>

</head>
<body data-type="modules">
Expand All @@ -28,7 +28,7 @@
<h1 class="sidebar-projectName">
thesis </h1>
<h2 class="sidebar-projectVersion">
v0.3.1
v0.3.2
</h2>
</div>
</a>
Expand Down Expand Up @@ -58,7 +58,7 @@ <h2 class="sidebar-projectVersion">


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


Expand Down
Loading

0 comments on commit d74c21c

Please sign in to comment.