Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a link in the header to GitHub repo #6

Open
wants to merge 90 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
3a16d6e
Re-add a first blog post
garretfick Apr 26, 2020
4e90c68
Merge pull request #5 from garretfick/feature/ADDBLOG
garretfick Apr 26, 2020
3a84e0c
Merge pull request #6 from garretfick/feature/TRAVISCI
garretfick Apr 26, 2020
7a03275
Update README.md
garretfick Apr 26, 2020
13f298f
Update README.md
garretfick Apr 26, 2020
deaf985
Merge pull request #7 from garretfick/feature/PNG
garretfick Apr 28, 2020
5e3ca08
Replace all webp with png
garretfick Apr 29, 2020
049a882
Merge pull request #8 from garretfick/feature/PNG
garretfick Apr 29, 2020
d18ccb0
Fix the breakpoints so that it shows nicely at all widths
garretfick Apr 29, 2020
6d8574e
Remove the lock file
garretfick Apr 29, 2020
faa9ec6
Merge pull request #9 from garretfick/feature/BREAKPOINTS
garretfick Apr 29, 2020
bae0493
Add a page for DNP3S. Add support for asciidoc as a more capable format
garretfick May 1, 2020
71a9c7c
Missed saving one file
garretfick May 1, 2020
41b129d
Merge pull request #10 from garretfick/feature/DNP3S
garretfick May 1, 2020
4476cd8
Back to Markdown because Github pages doesnt like asciidoc
garretfick May 1, 2020
ec67db9
Merge pull request #11 from garretfick/feature/DNP3S
garretfick May 1, 2020
b0edb3d
Lots more documentation about different capabilities
garretfick May 2, 2020
2f251ea
Add back a missing re-direct
garretfick May 2, 2020
dfe0667
Merge pull request #16 from garretfick/feature/DNP3S
garretfick May 2, 2020
9aaaf66
Add an example for Modbus slave address calculation
garretfick May 2, 2020
f5d9d69
Merge pull request #17 from garretfick/feature/MODBUSEX
garretfick May 2, 2020
710b7a0
Fix a minor typo
garretfick May 2, 2020
af9fca1
Merge pull request #18 from garretfick/feature/MODBUSEX
garretfick May 2, 2020
2611ed6
Add a picture to help explain the DNP3 mapping
garretfick May 3, 2020
7920a5d
Merge pull request #19 from openplcproject/feature/DNP3PIC
garretfick May 3, 2020
f28dcc4
Add a picture for Modbus slave mapping
garretfick May 3, 2020
c52b613
Merge pull request #20 from garretfick/feature/MBPIC
garretfick May 3, 2020
01ee3bb
Add image for the mobus master
garretfick May 3, 2020
35fcc6f
Merge pull request #21 from garretfick/feature/MBMASTER
garretfick May 3, 2020
312c85d
Add some missing addressing examples
garretfick May 4, 2020
77e1907
Merge pull request #22 from garretfick/feature/ADDRESSING
garretfick May 4, 2020
6727e7a
Add a link on pages to edit the page
garretfick May 23, 2020
34b374d
Merge pull request #23 from garretfick/feature/EDITLINK
garretfick May 23, 2020
cab56d6
Create CNAME
thiagoralves May 27, 2020
6347d1d
Add a spell check to travis
garretfick May 30, 2020
f308dbf
Actually add the spell check to travis build
garretfick May 30, 2020
38f958c
Fix calling spellcheck
garretfick May 30, 2020
1272325
Mark the spell check as executable
garretfick May 30, 2020
d0c72ef
The spell check dict on travis is different from local
garretfick May 30, 2020
68af94c
Add final missing word
garretfick May 30, 2020
61cccf2
Ensure that a couple files have LF endings
garretfick May 30, 2020
20ac568
Add another HTML5 validator
garretfick May 31, 2020
e69927b
Update README.md
garretfick May 29, 2020
3ddbdb4
Creating structure for SFB docs
thiagoralves Jun 10, 2020
2622c15
Update index.md
thiagoralves Jun 10, 2020
7bf77a4
Create sr-bistable.md
thiagoralves Jun 10, 2020
96fc23d
Use standard formatting for bistable. Add more info on docs
garretfick Jun 20, 2020
2f96a76
Create rs-bistable.md
christinezaytsev Jun 22, 2020
6ff057d
Create timer-on.md
christinezaytsev Jun 22, 2020
69f94ee
timer-on intro
christinezaytsev Jun 30, 2020
de4d9bb
Update timer-on.md
christinezaytsev Jun 30, 2020
ebfbad6
Update index.md
christinezaytsev Jun 30, 2020
ca370d6
added RS, TON links
christinezaytsev Jun 30, 2020
1c02e52
Update timer-on.md
christinezaytsev Jun 30, 2020
3228e29
Update CNAME
thiagoralves Jun 30, 2020
778986e
Merge pull request #28 from christinezaytsev/master
thiagoralves Jun 30, 2020
a1b03b9
Create timer-off.md
christinezaytsev Jul 7, 2020
a3aaef6
Create counter-up.md
christinezaytsev Jul 7, 2020
23e411b
Update counter-up.md
christinezaytsev Jul 7, 2020
5745e51
Create counter-down.md
christinezaytsev Jul 7, 2020
50a7f44
added CTU, CTD, TOF links
christinezaytsev Jul 7, 2020
af285a6
Create rising-trigger.md
christinezaytsev Jul 7, 2020
2b348f4
formatting
christinezaytsev Jul 7, 2020
d4716af
formatting
christinezaytsev Jul 7, 2020
eede5b4
formatting
christinezaytsev Jul 7, 2020
0c31299
formatting
christinezaytsev Jul 7, 2020
4d9ffeb
Create falling-trigger.md
christinezaytsev Jul 7, 2020
05dfbb3
Update rising-trigger.md
christinezaytsev Jul 7, 2020
d551ea6
added R_TRIG, F_TRIG links
christinezaytsev Jul 7, 2020
75630b8
Merge pull request #1 from openplcproject/master
christinezaytsev Jul 7, 2020
d2cdba7
Merge pull request #29 from christinezaytsev/master
thiagoralves Jul 10, 2020
ebd41d6
Corrected modbus IW and QW address range
thiagoralves Jul 22, 2020
c2e7cf4
Update index.md
thiagoralves Oct 8, 2020
9b906cc
Add a note when installing to checkout the development branch if you …
garretfick Jan 4, 2021
bf649ba
Corrected example output coil label.
josenj May 31, 2021
70ac95c
Added documentation for 'Semaphore'
josenj Jun 2, 2021
e780661
Added documentation for RealTime Clock.
josenj Jun 3, 2021
539c10f
Using a little Liquid variables.
josenj Jun 3, 2021
9851903
Corrected small typo for PDT input.
josenj Jun 3, 2021
f12508f
Fixed two small grammatical errors
DrEagleTalon Nov 3, 2021
3bf8df7
Added Wiki Link
DrEagleTalon Nov 8, 2021
097d5af
Replace travis with github actions
garretfick Dec 11, 2021
ded1a1a
Re-enable the spell check
garretfick Dec 11, 2021
27ddb8c
Fix the spell check command
garretfick Dec 11, 2021
7c61ddb
Remove old spell check now that it is fully in ruby
garretfick Dec 11, 2021
d7272cd
Build failed to create the custom dictionary - correct it
garretfick Dec 11, 2021
09a3338
Fix typo in the Rakefile
garretfick Dec 11, 2021
de58353
Add a link to main GitHub repo
garretfick Jan 11, 2022
4af6ffd
Remove extra div
garretfick Jan 11, 2022
4f9959c
Add missing li
garretfick Jan 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.sh text eol=lf
aspell-dict.txt text eol=lf
17 changes: 17 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test openplcproject.com Repository
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- run: bundle exec rake checkhtml
- run: sudo apt-get update -y && sudo apt-get -y install aspell aspell-en locales
- run: echo "en_US UTF-8" | sudo tee -a /etc/locale.gen
- run: sudo locale-gen en_US.UTF-8
- run: export LANG=en_US.UTF-8 && export LANGUAGE=en_US:en && export LC_ALL=en_US.UTF-8 && bundle exec rake spellcheck
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ _site
.jekyll-cache
.jekyll-metadata
vendor
*.rws
Gemfile.lock
.bundle
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.openplcproject.com
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?

gem 'rake'
gem 'jekyll-redirect-from'
gem 'html-proofer'
gem 'nokogiri', '>= 1.12.0'
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# openplcproject.github.io

[![Build Status](https://travis-ci.com/openplcproject/openplcproject.github.io.svg?branch=master)](https://travis-ci.com/openplcproject/openplcproject.github.io)

This project is the source for the OpenPLC Project's website, available
at openplcproject.com. The site is built using the fantastic Jekyll static
at openplcproject.com. We built the site using the fantastic Jekyll static
site generator.

## Development
Expand All @@ -10,8 +12,16 @@ site generator.
1. Run `bundle install`
1. Run `bundle exec jekyll serve`

You can (and should) run some simple tests with `bundle exec rake checkhtml`
to check for common problems. The continuous integration build includes
additional checks.

## Deploy

TheGitHub repository hosted on openplc/openplcproject.github.io is configured
The GitHub repository hosted on openplcproject/openplcproject.github.io is configured
to automatically publish changes to the master branch. There is nothing you
need to do.

Builds published to GitHub automatically run a test build. The automated build
checks for valid HTML and other common problems. The test currently does not
run the spell check that can be run separately.
70 changes: 58 additions & 12 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
require 'html-proofer'
require 'nokogiri'

task :test do
task :checkhtml do
sh "bundle exec jekyll build"
options = {
:assume_extension => true,
:allow_hash_href => true,
:check_favicon => true,
:check_html => true,
:checks_to_ignore => ["alt_ignore", "empty_alt_ignore"],
:empty_alt_ignore => true,
:disable_external => true
}
HTMLProofer.check_directory("./_site", options).run

num_with_errors = 0
last_error = ""
files = Dir['_site/**/*.html']
for file_name in files do
file = File.open(file_name).read
# Max errors is default to nil, which returns 0 error. This just
# needs any positive number of which 10 satisfies the conditions
begin
doc = Nokogiri::HTML5(file, max_errors: 10)

if doc.errors.length > 0
puts("Error: " + file_name + "\n")
doc.errors.each do |err|
puts(err)
last_error = err
end

num_with_errors += 1
else
puts("OK: " + file_name + "\n")
end
rescue => ex
puts("Error: " + file_name + "\n")
puts(ex)
num_with_errors += 1
end
end

if num_with_errors > 0
puts("Num files with errors:" + num_with_errors.to_s + "\n")
raise "One or more files contains an error. Last error: " + last_error
end
end

task :spellcheck do
sh "bundle exec jekyll build"
sh "aspell --lang=en create master ./aspell-dict.rws < ./aspell-dict.txt"

num_with_errors = 0
last_error = ""
files = Dir['_site/**/*.html']
for file_name in files do
misspelled = `cat #{file_name} | aspell --list -H --html-skip=script --add-html-skip=style --add-html-skip=pre --add-html-skip=code --extra-dicts=./aspell-dict.rws | sed '/^$/d'`
if misspelled.length > 0
puts("Error: " + file_name + " words: " + misspelled)
num_with_errors += 1
else
puts("OK: " + file_name)
end
end

if num_with_errors > 0
puts("Num files with errors:" + num_with_errors.to_s + "\n")
raise "One or more files contains an misspelling. Add false positives to aspell-dict.txt"
end
end
11 changes: 8 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Your awesome title
title: OpenPLC Project
email: [email protected]
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: jekyll
github_username: openplcproject

# Build settings
theme: minima
Expand All @@ -38,6 +37,12 @@ plugins:
whitelist:
- jekyll-redirect-from

collections:
posts:
output: true
permalink: /blog/:year/:month/:day/:title


# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
Expand Down
22 changes: 11 additions & 11 deletions _data/carousel.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
images:
- image: /assets/img/carousel/daughtercards.webp
- image: /assets/img/carousel/zumlink.webp
- image: /assets/img/carousel/mega.webp
- image: /assets/img/carousel/pixtend.webp
- image: /assets/img/carousel/raspberrypi.webp
- image: /assets/img/carousel/small.webp
- image: /assets/img/carousel/zumlink.webp
- image: /assets/img/carousel/zumiq.webp
- image: /assets/img/carousel/unipi.webp
- image: /assets/img/carousel/modbusio.webp
- image: /assets/img/carousel/arduino.webp
- image: /assets/img/carousel/daughtercards.png
- image: /assets/img/carousel/zumlink.png
- image: /assets/img/carousel/mega.png
- image: /assets/img/carousel/pixtend.png
- image: /assets/img/carousel/raspberrypi.png
- image: /assets/img/carousel/small.png
- image: /assets/img/carousel/zumlink.png
- image: /assets/img/carousel/zumiq.png
- image: /assets/img/carousel/unipi.png
- image: /assets/img/carousel/modbusio.png
- image: /assets/img/carousel/arduino.png

13 changes: 13 additions & 0 deletions _includes/development.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="admonitionblock important">
<table>
<tbody><tr>
<td class="icon">
<div class="title">Important</div>
</td>
<td class="content">
This section describes capabilities only in the <code>development</code> branch.
You must checkout the <code>development</code> branch to use these capabilities.
</td>
</tr>
</tbody></table>
</div>
6 changes: 3 additions & 3 deletions _includes/firstproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ The [Reference](/reference) menu on this website has a nice tutorial that
teaches you [how to create your first project](/reference-your-first-project).
However, if you're in a hurry, you can download the official Hello World
project, which is basically one rung, a button, a timer and a coil, all
connected together. The button is attached to %IX0.0 and the coil is attached
to %QX0.0. When the button is pressed and released, the coil is energized and
connected together. The button is attached to `%IX0.0` and the coil is attached
to `%QX0.0`. When the button is pressed and released, the coil is energized and
remains on for 2 seconds, and then turns off.

<img src="/runtime/img/myprogram.webp" alt=""/>
<img src="/runtime/img/myprogram.png" alt=""/>

Download the project below and open it on [OpenPLC Editor](/plcopen-editor).
Click on Generate
Expand Down
18 changes: 13 additions & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<footer>
<div class="pure-g inset">
<div class="pure-u-1 footer__title">Contact</div>
<hr class="pure-u-1" />
<div class="pure-u-1 footer_item">Thiago Alves</div>
<div class="pure-u-1 footer_item">Mail: <a href="mailto:[email protected]">[email protected]</a></div>
<hr class="pure-u-1" />
<div class="pure-u-1-3">
<div class="footer__title">
CONTACT
</div>
<div class="footer_item">Thiago Alves</div>
<div class="footer_item">Mail: <a href="mailto:[email protected]">[email protected]</a></div>
</div>
<div class="pure-u-1-3">

</div>
<div class="pure-u-1-3" style="text-align:right">
<a href="//github.com/openplcproject/openplcproject.github.io/blob/master/{{page.path}}"><i class='fa fa-pencil'></i> Edit this page</a>
</div>
</div>
</footer>
12 changes: 12 additions & 0 deletions _includes/important.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="admonitionblock important">
<table>
<tbody><tr>
<td class="icon">
<div class="title">Important</div>
</td>
<td class="content">
{{ include.content }}
</td>
</tr>
</tbody></table>
</div>
11 changes: 11 additions & 0 deletions _includes/inset-dev.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: default
---

<article class="inset">
<h1>{{ page.title }}</h1>

{%include development.html %}

{{ content }}
</article>
3 changes: 3 additions & 0 deletions _includes/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ The installation process will take a while (up to 1 hour depending on your
system). Meanwhile, grab a [insert your favorite beverage here] and relax!
Once OpenPLC is installed, just reboot your device and it will start
automatically after boot.

{% include tip.html content="To use in-development capabilities, checkout the
`development` branch (`git checkout development`) prior to running `install.sh`." %}
6 changes: 3 additions & 3 deletions _includes/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ accessed by opening a web browser on your computer and typing the IP address
of your OpenPLC device at port 8080. For example, if your {{ include.devicename }}
has the IP 192.168.0.103 on your network, you should type this on your browser:

<img src="/runtime/img/ipaddress.webp" alt=""/>
<img src="/runtime/img/ipaddress.png" alt=""/>

If you don't know the IP address of your board, the Raspberry Pi foundation
has a [nice guide](https://www.raspberrypi.org/documentation/remote-access/ip-address.md)
Expand All @@ -14,15 +14,15 @@ to help you out.
Once you access OpenPLC webserver, you should see in your browser window a
login page like this:

<img src="/runtime/img/login.webp" alt=""/>
<img src="/runtime/img/login.png" alt=""/>

The default username and password is openplc (login) and openplc (password).
This means that the first thing you must do after logging in for the first
time is **change the default username and password**! It is very easy to do
that. Just go to the Users menu, click on the OpenPLC User and change the
information as you like.

<img src="/runtime/img/edituser.webp" alt=""/>
<img src="/runtime/img/edituser.png" alt=""/>

Once you save the changes you will be prompted to login again. Just login with
your new credentials and you will be good to go!
10 changes: 6 additions & 4 deletions _includes/menu.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<nav>
<div class="custom-wrapper pure-g inset" id="menu">
<div class="pure-u-1 pure-u-md-1-3">
<div class="pure-u-1 pure-u-md-1-4">
<div class="pure-menu">
<a href="/" class="pure-menu-heading custom-brand">
<img src="/assets/img/openplc-white.gif" alt="Go to home page" class="header__logo"/>
<a href="/" class="pure-menu-heading">
<img src="/assets/img/openplc-white.png" alt="Go to home page" class="header__logo"/>
</a>
<a href="#" class="custom-toggle" id="toggle"><s class="bar"></s><s class="bar"></s></a>
</div>
</div>
<div class="pure-u-1 pure-u-md-2-3">
<div class="pure-u-1 pure-u-md-3-4">
<div class="pure-menu pure-menu-horizontal custom-menu-3 custom-can-transform">
{% assign current = page.url | downcase | split: '/' %}

Expand All @@ -18,6 +18,8 @@
Started</a></li>
<li class="pure-menu-item"><a href="/reference" class="pure-menu-link{% if current[1] == 'reference' %} current{% endif %}">Reference</a></li>
<li class="pure-menu-item"><a href="http://openplc.discussion.community/" class="pure-menu-link">Forum</a></li>
<li class="pure-menu-item"><a href="/blog" class="pure-menu-link{% if current[1] == 'blog' %} current{% endif %}">Blog</a></li>
<li class="pure-menu-item"><a href="//github.com/thiagoralves/OpenPLC_v3" alt="Contribute on GitHub"><i class='fa fa-github'></i></a></li>
</ul>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions _includes/note.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p class="note">
{{ include.content }}
</p>
12 changes: 12 additions & 0 deletions _includes/tip.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="admonitionblock tip">
<table>
<tbody><tr>
<td class="icon">
<div class="title">Tip</div>
</td>
<td class="content">
{{ include.content | markdownify }}
</td>
</tr>
</tbody></table>
</div>
Loading