no ability to dynamically set globals in liquid; hence calculate the current...

no ability to dynamically set globals in liquid; hence calculate the current version of Dynare based on the Windows (exe) version
parent 18fd9c03
......@@ -14,9 +14,6 @@
# remote_theme : "mmistakes/minimal-mistakes"
minimal_mistakes_skin : "contrast" # "default" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"
dynare_stable_version : "4.5.6"
# Site Settings
locale : "en-US"
title : "Dynare"
......
{% assign release = site.static_files | where: "release", "windows-exe" | first %}
{% assign dynare_stable_version = release.name | split: '-' %}
{% assign dynare_stable_version = dynare_stable_version[1] %}
......@@ -3,9 +3,10 @@ title: Download
---
<br />
{% include dynare_stable_version.md %}
# Stable
The current stable release is Dynare {{ site.dynare_stable_version }}.
The current stable release is Dynare {{ dynare_stable_version }}.
{% include download-stable.html %}
......
......@@ -11,7 +11,8 @@ feature_row:
<div class="dynare_home_page_image_container">
</div>
<br />
<a href="download" class="home_page_button">Download v{{ site.dynare_stable_version }}</a>&nbsp; &nbsp;<a href="http://www.dynare.org/manual/" class="home_page_button">Documentation</a>
{% include dynare_stable_version.md %}
<a href="download" class="home_page_button">Download v{{ dynare_stable_version }}</a>&nbsp; &nbsp;<a href="http://www.dynare.org/manual/" class="home_page_button">Documentation</a>
{: .text-center}
......
......@@ -3,6 +3,8 @@ title: Quick Start
---
<br />
{% include dynare_stable_version.md %}
For those who want to quickly have something running, this page explains how to
setup Dynare on [Windows](#windows) or [macOS](#macos) and to run your first
model (`.mod`) file.
......@@ -41,9 +43,9 @@ You will have to do this every time you start MATLAB, as MATLAB will not remembe
```
>> addpath C:\dynare\4.x.y\matlab
```
For example, for Dynare {{ site.dynare_stable_version }} type:
For example, for Dynare {{ dynare_stable_version }} type:
```
>> addpath C:\dynare\{{ site.dynare_stable_version }}\matlab
>> addpath C:\dynare\{{ dynare_stable_version }}\matlab
```
### 2. Configuring MATLAB using the menu entries on Windows
......@@ -52,9 +54,9 @@ You will only have to do this once as MATLAB will remember the setting the next
1. On the MATLAB `Home` tab, in the `Environment` section, click on `Set Path`
1. Click `Add Folder...`. <i class="fas fa-exclamation-triangle"></i> **Warning: DO NOT** select `Add with Subfolders...`
1. Select the `matlab` subdirectory of your Dynare installation. For example, if you have installed Dynare {{ site.dynare_stable_version }} in the standard location, select:
1. Select the `matlab` subdirectory of your Dynare installation. For example, if you have installed Dynare {{ dynare_stable_version }} in the standard location, select:
```
C:\dynare\{{ site.dynare_stable_version }}\matlab
C:\dynare\{{ dynare_stable_version }}\matlab
```
1. Apply the setting by clicking `Save` button
......@@ -65,16 +67,16 @@ Windows
```
>> addpath C:\dynare\4.x.y\matlab
```
For example, for Dynare {{ site.dynare_stable_version }} type:
For example, for Dynare {{ dynare_stable_version }} type:
```
>> addpath C:\dynare\{{ site.dynare_stable_version }}\matlab
>> addpath C:\dynare\{{ dynare_stable_version }}\matlab
```
If you don't want to type this command every time you run Octave, you can put it in a file called `.octaverc` in your home directory. This file will usually be called `C:\Documents and Settings\USERNAME\.octaverc` on Windows XP and `C:\Users\USERNAME\.octaverc` on Windows Vista/7.
## Running and editing a Dynare example on Windows
1. Create a working directory that will hold your Dynare models. For example, `C:\dynare\work`.
1. Assuming that you are using Dynare {{ site.dynare_stable_version }}, copy the example model file `C:\dynare\{{ site.dynare_stable_version }}\examples\example1.mod` to your working directory.
1. Assuming that you are using Dynare {{ dynare_stable_version }}, copy the example model file `C:\dynare\{{ dynare_stable_version }}\examples\example1.mod` to your working directory.
1. At the MATLAB or Octave command prompt, type the following to change the working directory:
```
>> cd C:\dynare\work
......@@ -131,9 +133,9 @@ You will have to do this every time you start MATLAB, as MATLAB will not remembe
```
>> addpath /Applications/Dynare/4.x.y/matlab
```
For example, for Dynare {{ site.dynare_stable_version }} type:
For example, for Dynare {{ dynare_stable_version }} type:
```
>> addpath /Applications/Dynare/{{ site.dynare_stable_version }}/matlab
>> addpath /Applications/Dynare/{{ dynare_stable_version }}/matlab
```
### 2. Configuring MATLAB using the menu entries on macOS
......@@ -142,9 +144,9 @@ You will only have to do this once as MATLAB will remember the setting the next
1. On the MATLAB `Home` tab, in the `Environment` section, click on `Set Path`
1. Click `Add Folder...`. <i class="fas fa-exclamation-triangle"></i> **Warning: DO NOT** select `Add with Subfolders...`
1. Select the `matlab` subdirectory of your Dynare installation. For example, if you have installed Dynare {{ site.dynare_stable_version }} in the standard location, select:
1. Select the `matlab` subdirectory of your Dynare installation. For example, if you have installed Dynare {{ dynare_stable_version }} in the standard location, select:
```
/Applications/Dynare/{{ site.dynare_stable_version }}/matlab
/Applications/Dynare/{{ dynare_stable_version }}/matlab
```
1. Apply the setting by clicking `Save` button
......@@ -154,9 +156,9 @@ If you have Dynare installed in the standard location type the following at the
```
>> addpath /Applications/Dynare/4.x.y/matlab
```
For example, for Dynare {{ site.dynare_stable_version }} type:
For example, for Dynare {{ dynare_stable_version }} type:
```
>> addpath /Applications/Dynare/{{ site.dynare_stable_version }}/matlab
>> addpath /Applications/Dynare/{{ dynare_stable_version }}/matlab
```
If you don't want to type this command every time you run Octave, you can put
......@@ -166,7 +168,7 @@ be called `/home/USERNAME/.octaverc`.
## Running and editing a Dynare example on macOS
1. Create a working directory that will hold your Dynare models. For example, `/home/USERNAME/work`.
1. Assuming that you are using Dynare {{ site.dynare_stable_version }}, copy the example model file `/Applications/Dynare/{{ site.dynare_stable_version }}/examples/example1.mod` to your working directory.
1. Assuming that you are using Dynare {{ dynare_stable_version }}, copy the example model file `/Applications/Dynare/{{ dynare_stable_version }}/examples/example1.mod` to your working directory.
1. At the MATLAB or Octave command prompt, type the following to change the working directory:
```
>> cd /home/USERNAME/work
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment