Skip to content

Commit

Permalink
✔️ Add page for configuration
Browse files Browse the repository at this point in the history
	+ some fixes on menu/footer

 Issues related:
 	-> #19 Documentation
 	-> #22 Tutorial

 On branch gh-pages
 Your branch is up to date with 'origin/gh-pages'.

 Changes to be committed:
	modified:   _includes/js/wallet.js
	new file:   _includes/wallet/config.md
	modified:   _includes/wallet/list.md
	new file:   _includes/wallet/rm.md
	new file:   _includes/wallet/start.md
	modified:   _layouts/wallet.html
  • Loading branch information
ChacaS0 committed Mar 22, 2018
1 parent ee7ce79 commit 78e124c
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 13 deletions.
6 changes: 2 additions & 4 deletions _includes/js/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,18 @@ $(document).ready(function(){
// $(getid).load(getsrc);
// // get the script URL


// var iframe = document.getElementById(getid);
// iframe.contentDocument.location=iframe.src;
// $('#'+getid).attr('src', $('#'+getid).attr('src'));

// $(getid).attr("src", "");
// $(getid).attr("src", getsrc);


// scroll to it
$.wait(390).then(function(){
$.wait(410).then(function(){
$('html').animate({
scrollTop: $(idEvt).offset().top
}, 450);
}, 500);
}
);

Expand Down
25 changes: 25 additions & 0 deletions _includes/wallet/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

<a href="https://asciinema.org/a/cVCKdVX9lOeJEgBpPbbFrJX5f" target="_blank"><img src="https://asciinema.org/a/cVCKdVX9lOeJEgBpPbbFrJX5f.png" /></a>

### [](#head-config-1)Set up configuration:
:wrench: Configuration with **TEMPest** is done with the ``set`` command.
```bash
tempest set
```


### [](#head-config-2)Access configuration:
:wrench: Access to configuration is done with the ``get`` command.
```bash
tempest get
```


**Possible flags:**

| Long Flag | Short Flag | Description |
|:----------------|:------------|:------------------------------------------------------------------------------|
| \-\-age | -a | Set the age of the targets. age = 3 means that if a file haven't been modified for 3 days, it will be deleted. |
| \-\-daemon-mode | -d | ``true`` if you want it to run as daemon, ``false`` otherwise. |

:warning: *Subject to changes*
8 changes: 7 additions & 1 deletion _includes/wallet/list.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
**Listing stuff with TEMPest**
**To list targets with TEMPest:**
```bash
tempest list
```
- ``Index``: The number the targets can be identified with
:warning: This number might change after each modification !
- ``Target``/``Path``: The target represents the path to a directory or file to be handled by **TEMPest**
1 change: 1 addition & 0 deletions _includes/wallet/rm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**remove targets**
4 changes: 4 additions & 0 deletions _includes/wallet/start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Test mode**


**Serious Mode**
33 changes: 25 additions & 8 deletions _layouts/wallet.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@
<a class="main-title" href="{{site.url}}"><h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1></a>
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
<!-- <hr> -->
{% if site.github.is_project_page %}
<!-- MENU -->
<a href="{{ site.github.repository_url }}" class="btn" target="_blank">View on GitHub</a>
<a href="{{site.url}}/install" class="btn">Installation</a>
<a href="{{site.url}}/usage" class="btn">Usage</a>
<a href="{{site.url}}/about" class="btn">About</a>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TQYU8BPPV5YWA" target="_blank" title="Redirects to Paypal" class="btn">Donate</a>
<a href="{{site.url}}/install" class="btn">Installation</a>
<a href="{{site.url}}/usage" class="btn">Usage</a>
<a href="{{site.url}}/about" class="btn">About</a>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn" target="_blank">View on GitHub</a>
{% endif %}
<!-- //MENU -->
</section>
Expand All @@ -49,11 +48,17 @@ <h2 class="project-tagline">{{ site.description | default: site.github.project_t
<div id="wallet1" class="wallet">
<!-- WALLET -->
<!-- INIT -->
<h2 id="wall-init" class="wall-head">Initialization</h2>
<h2 id="wall-init" class="wall-head">Initialization </h2>
<div id="wall-ctnt1" class="wall-ctnt">
{% capture wallet-init %}{% include wallet/init.md %}{% endcapture %}
{{ wallet-init | markdownify }}
</div>
<!-- CONFIG -->
<h2 id="wall-config" class="wall-head">Configure TEMPest </h2>
<div id="wall-ctnt4" class="wall-ctnt">
{% capture wallet-config %}{% include wallet/config.md %}{% endcapture %}
{{ wallet-config | markdownify }}
</div>
<!-- LIST -->
<h2 id="wall-list" class="wall-head">List targets </h2>
<div id="wall-ctnt3" class="wall-ctnt">
Expand All @@ -65,13 +70,25 @@ <h2 id="wall-add" class="wall-head">Add targets </h2>
<div id="wall-ctnt2" class="wall-ctnt">
{% capture wallet-add %}{% include wallet/add.md %}{% endcapture %}
{{ wallet-add | markdownify }}
</div>
<!-- RM -->
<h2 id="wall-rm" class="wall-head">Remove targets </h2>
<div id="wall-ctnt5" class="wall-ctnt">
{% capture wallet-rm %}{% include wallet/rm.md %}{% endcapture %}
{{ wallet-rm | markdownify }}
</div>
<!-- RM -->
<h2 id="wall-start" class="wall-head">Launch TEMPesst </h2>
<div id="wall-ctnt6" class="wall-ctnt">
{% capture wallet-start %}{% include wallet/start.md %}{% endcapture %}
{{ wallet-start | markdownify }}
</div>
<!-- //WALLET -->
</div>

<footer class="site-footer">
{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">TEMPest</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">TEMPest</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.<strong>Support - <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TQYU8BPPV5YWA" target="_blank" title="Redirects to Paypal">Donate</a></strong></span>
{% endif %}
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
</footer>
Expand Down

0 comments on commit 78e124c

Please sign in to comment.