Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions docs/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# 見つからないURLのときに GitHub Pages が返すページ。1枚だけなので日英を並べて書く。
# どの階層でも表示されるので base_href で相対リンクをサイトの先頭から解決させ、検索結果には出さない(_includes/seo.html)
layout: default
title: ページが見つかりません
permalink: /404.html
base_href: true
lead: お探しのページは移動したか、削除された可能性があります。 The page you are looking for may have been moved or removed.
---

- [ユーザーガイドのトップ](index.html)(左の目次から目的のページを開けます)
- [紹介ページ](intro.html)(製造指図から出荷までの流れと主な画面を、画面写真で紹介しています)

<div lang="en" markdown="1">

## English

- [User Guide](en/)
- [Overview of Parallel Factory MES](en/intro.html)

</div>
4 changes: 4 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
# ページ間のリンクはすべて相対リンク(例: getting-started.html)のため、
# baseurl の設定は不要です。テーマは使わず _layouts/default.html を使用します。

# 公開URL(末尾は /)。canonical・hreflang・OGP・sitemap.xml の完全なURLだけに使う(ページ間のリンクは相対のまま)。
# フォークして別の場所で公開するときはここを書き換える
site_url: https://msmsrep.github.io/ParallelFactoryMES/

title: Parallel Factory MES ユーザーガイド
description: 製造実績管理システム Parallel Factory MES の操作マニュアル

Expand Down
7 changes: 7 additions & 0 deletions docs/_data/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ja:
lang_switch_code: en
ja_only: ""
ja_only_title: ""
# SNSで共有したときの画像(_includes/seo.html。site_url からの相対)
og_image: assets/og.png
og_image_alt: Parallel Factory MES のダッシュボード画面
og_locale: ja_JP
en:
site_title: Parallel Factory MES User Guide
site_description: User manual for Parallel Factory MES, a manufacturing execution system
Expand All @@ -30,3 +34,6 @@ en:
lang_switch_code: ja
ja_only: JA
ja_only_title: Not yet translated. Opens the Japanese page.
og_image: assets/en/og.png
og_image_alt: The Parallel Factory MES dashboard screen
og_locale: en_US
45 changes: 45 additions & 0 deletions docs/_includes/seo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{%- comment -%}
検索エンジンとSNS向けの head 要素(canonical・hreflang・OGP・Xカード)。
ガイドの共通レイアウトと、レイアウトを使わない独立ページ(intro.html・factory-tour.html とその英語版)の両方から読む。
- nav_url の無いページ(404.html)は canonical を出さず noindex にする
- 呼び出し側で title を渡す。説明文は page.description、無ければ page.lead
- URL は _config.yml の site_url を基点にした完全なURL(Google は hreflang・canonical に完全なURLを求める)
- 日英の対応は同じ nav_url を持つページの有無で判定する(docs-dev/GuideEnPlan.md)
{%- endcomment -%}
{%- assign seo_lang = page.lang | default: site.lang -%}
{%- assign seo_ui = site.data.ui[seo_lang] -%}
{%- if page.nav_url == "index.html" -%}{%- assign seo_path = "" -%}{%- else -%}{%- assign seo_path = page.nav_url -%}{%- endif -%}
{%- assign seo_ja = site.site_url | append: seo_path -%}
{%- assign seo_en = site.site_url | append: "en/" | append: seo_path -%}
{%- if seo_lang == "en" -%}
{%- assign seo_url = seo_en -%}
{%- assign seo_pair = site.pages | where: "nav_url", page.nav_url | where: "dir", "/" | first -%}
{%- else -%}
{%- assign seo_url = seo_ja -%}
{%- assign seo_pair = site.pages | where: "nav_url", page.nav_url | where: "dir", "/en/" | first -%}
{%- endif -%}
{%- assign seo_desc = page.description | default: page.lead | default: seo_ui.site_description | markdownify | strip_html | strip_newlines | strip -%}
<meta name="description" content="{{ seo_desc | escape }}">
{%- if page.nav_url %}
<link rel="canonical" href="{{ seo_url }}">
{%- else %}
<meta name="robots" content="noindex">
{%- endif %}
{%- if page.nav_url and seo_pair %}
<link rel="alternate" hreflang="ja" href="{{ seo_ja }}">
<link rel="alternate" hreflang="en" href="{{ seo_en }}">
<link rel="alternate" hreflang="x-default" href="{{ seo_ja }}">
{%- endif %}
<meta property="og:type" content="website">
<meta property="og:site_name" content="Parallel Factory MES">
<meta property="og:title" content="{{ include.title | escape }}">
<meta property="og:description" content="{{ seo_desc | escape }}">
{%- if page.nav_url %}
<meta property="og:url" content="{{ seo_url }}">
{%- endif %}
<meta property="og:image" content="{{ site.site_url }}{{ seo_ui.og_image }}">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="{{ seo_ui.og_image_alt | escape }}">
<meta property="og:locale" content="{{ seo_ui.og_locale }}">
<meta name="twitter:card" content="summary_large_image">
14 changes: 9 additions & 5 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title and page.nav_url != "index.html" %}{{ page.title }} | {% endif %}{{ ui.site_title }}</title>
<meta name="description" content="{{ page.description | default: ui.site_description }}">
<link rel="stylesheet" href="{{ root }}assets/style.css">
{%- if switch_url %}
<link rel="alternate" hreflang="{{ ui.lang_switch_code }}" href="{{ switch_url }}">
{%- if page.base_href %}
<!-- どの階層のURLでも表示されるページ(404.html)は、相対リンクをサイトの先頭から解決させる -->
<base href="{{ site.site_url }}">
{%- endif %}
{%- capture page_title -%}{% if page.title and page.nav_url != "index.html" %}{{ page.title }} | {% endif %}{{ ui.site_title }}{%- endcapture %}
<title>{{ page_title }}</title>
{% include seo.html title=page_title %}
<!-- ファビコンは build/icon.svg と同じ図柄(intro.html と同じ) -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(-5.5,-9.5) scale(1.06)'%3E%3Crect x='19' y='58' width='21' height='26' rx='6' fill='%23CDEBDF'/%3E%3Crect x='47' y='32' width='21' height='52' rx='6' fill='%238FD2BE'/%3E%3Crect x='75' y='46' width='21' height='38' rx='6' fill='%235CC8A8'/%3E%3Cg fill='none' stroke='%2318193F' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='50' width='21' height='26' rx='6'/%3E%3Crect x='40' y='24' width='21' height='52' rx='6'/%3E%3Crect x='68' y='38' width='21' height='38' rx='6'/%3E%3Cpath d='M13 88 H88'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E">
<link rel="stylesheet" href="{{ root }}assets/style.css">
</head>
<body>
<a class="skip" href="#main">{{ ui.skip }}</a>
Expand Down
Binary file added docs/assets/en/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions docs/en/factory-tour.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
# Standalone page (no layout). Search and social head tags come from _includes/seo.html
nav_url: factory-tour.html
seo_title: "Factory model: from production to shipping | Parallel Factory MES User Guide"
description: "Follow the sample gear-pump production on a moving factory model and see how the MES records change."
---
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Factory model: from production to shipping | Parallel Factory MES User Guide</title>
<meta name="description" content="Follow the sample gear-pump production on a moving factory model and see how the MES records change.">
<link rel="alternate" hreflang="ja" href="../factory-tour.html">
<link rel="alternate" hreflang="en" href="factory-tour.html">
<title>{{ page.seo_title }}</title>
{% include seo.html title=page.seo_title %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(-5.5,-9.5) scale(1.06)'%3E%3Crect x='19' y='58' width='21' height='26' rx='6' fill='%23CDEBDF'/%3E%3Crect x='47' y='32' width='21' height='52' rx='6' fill='%238FD2BE'/%3E%3Crect x='75' y='46' width='21' height='38' rx='6' fill='%235CC8A8'/%3E%3Cg fill='none' stroke='%2318193F' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='50' width='21' height='26' rx='6'/%3E%3Crect x='40' y='24' width='21' height='52' rx='6'/%3E%3Crect x='68' y='38' width='21' height='38' rx='6'/%3E%3Cpath d='M13 88 H88'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E">
<link rel="stylesheet" href="../assets/style.css">
<link rel="stylesheet" href="../assets/tour/tour.css">
Expand Down
21 changes: 17 additions & 4 deletions docs/en/intro.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
---
# Standalone page (no layout). Search and social head tags come from _includes/seo.html
nav_url: intro.html
seo_title: "Parallel Factory MES | Open-source manufacturing execution system (MES)"
description: "An open-source manufacturing execution system that records and traces production lot by lot, from manufacturing orders to shipping."
---
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Parallel Factory MES</title>
<title>{{ page.seo_title }}</title>
{% include seo.html title=page.seo_title %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(-5.5,-9.5) scale(1.06)'%3E%3Crect x='19' y='58' width='21' height='26' rx='6' fill='%23CDEBDF'/%3E%3Crect x='47' y='32' width='21' height='52' rx='6' fill='%238FD2BE'/%3E%3Crect x='75' y='46' width='21' height='38' rx='6' fill='%235CC8A8'/%3E%3Cg fill='none' stroke='%2318193F' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='50' width='21' height='26' rx='6'/%3E%3Crect x='40' y='24' width='21' height='52' rx='6'/%3E%3Crect x='68' y='38' width='21' height='38' rx='6'/%3E%3Cpath d='M13 88 H88'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E">
<meta name="description" content="An open-source manufacturing execution system that records and traces production lot by lot, from manufacturing orders to shipping.">
<link rel="alternate" hreflang="ja" href="../intro.html">
<link rel="alternate" hreflang="en" href="intro.html">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap">
<link rel="stylesheet" href="../assets/intro.css">
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Parallel Factory MES",
"applicationCategory":"BusinessApplication","operatingSystem":"Windows, Linux",
"description":"An open-source manufacturing execution system that records and traces production lot by lot, from manufacturing orders to shipping.","inLanguage":"en","softwareVersion":"1.1.0",
"license":"https://www.gnu.org/licenses/agpl-3.0.html",
"url":"{{ site.site_url }}en/intro.html",
"downloadUrl":"https://github.com/msmsrep/ParallelFactoryMES/releases/latest",
"offers":{"@type":"Offer","price":"0","priceCurrency":"JPY"}}
</script>
</head>
<body>
<header class="top">
Expand Down
12 changes: 8 additions & 4 deletions docs/factory-tour.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
---
# 独立ページ(レイアウトなし)。head の検索・SNS向け要素は _includes/seo.html
nav_url: factory-tour.html
seo_title: "工場模型で見る 製造から出荷まで | Parallel Factory MES ユーザーガイド"
description: "サンプルのギアポンプ製造を、動く工場模型と MES の記録の変化で見るページ。"
---
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 工場模型で見る 製造から出荷まで(docs-dev/FactoryTour.md)。サイドバーのない全幅ページ -->
<title>工場模型で見る 製造から出荷まで | Parallel Factory MES ユーザーガイド</title>
<meta name="description" content="サンプルのギアポンプ製造を、動く工場模型と MES の記録の変化で見るページ。">
<title>{{ page.seo_title }}</title>
{% include seo.html title=page.seo_title %}
<!-- ファビコンは build/icon.svg と同じ図柄(intro.html と同じ) -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(-5.5,-9.5) scale(1.06)'%3E%3Crect x='19' y='58' width='21' height='26' rx='6' fill='%23CDEBDF'/%3E%3Crect x='47' y='32' width='21' height='52' rx='6' fill='%238FD2BE'/%3E%3Crect x='75' y='46' width='21' height='38' rx='6' fill='%235CC8A8'/%3E%3Cg fill='none' stroke='%2318193F' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='50' width='21' height='26' rx='6'/%3E%3Crect x='40' y='24' width='21' height='52' rx='6'/%3E%3Crect x='68' y='38' width='21' height='38' rx='6'/%3E%3Cpath d='M13 88 H88'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E">
<link rel="alternate" hreflang="ja" href="factory-tour.html">
<link rel="alternate" hreflang="en" href="en/factory-tour.html">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/tour/tour.css">
</head>
Expand Down
21 changes: 17 additions & 4 deletions docs/intro.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
---
# 独立ページ(レイアウトなし)。head の検索・SNS向け要素は _includes/seo.html
nav_url: intro.html
seo_title: "Parallel Factory MES|オープンソースの製造実行システム(MES)"
description: "製造指図から出荷まで、ロット単位で記録・追跡するオープンソースの製造実行システム。"
---
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Parallel Factory MES の紹介ページ(ユーザーガイドとは別の、アプリの概要を伝えるページ) -->
<title>Parallel Factory MES</title>
<title>{{ page.seo_title }}</title>
{% include seo.html title=page.seo_title %}
<!-- ファビコンは build/icon.svg と同じ図柄(図柄の定義はそちらが正。変えたらここも合わせる) -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate(-5.5,-9.5) scale(1.06)'%3E%3Crect x='19' y='58' width='21' height='26' rx='6' fill='%23CDEBDF'/%3E%3Crect x='47' y='32' width='21' height='52' rx='6' fill='%238FD2BE'/%3E%3Crect x='75' y='46' width='21' height='38' rx='6' fill='%235CC8A8'/%3E%3Cg fill='none' stroke='%2318193F' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='50' width='21' height='26' rx='6'/%3E%3Crect x='40' y='24' width='21' height='52' rx='6'/%3E%3Crect x='68' y='38' width='21' height='38' rx='6'/%3E%3Cpath d='M13 88 H88'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E">
<meta name="description" content="製造指図から出荷まで、ロット単位で記録・追跡するオープンソースの製造実行システム。">
<link rel="alternate" hreflang="ja" href="intro.html">
<link rel="alternate" hreflang="en" href="en/intro.html">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap">
<link rel="stylesheet" href="assets/intro.css">
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Parallel Factory MES",
"applicationCategory":"BusinessApplication","operatingSystem":"Windows, Linux",
"description":"製造指図から出荷まで、ロット単位で記録・追跡するオープンソースの製造実行システム。","inLanguage":"ja","softwareVersion":"1.1.0",
"license":"https://www.gnu.org/licenses/agpl-3.0.html",
"url":"{{ site.site_url }}intro.html",
"downloadUrl":"https://github.com/msmsrep/ParallelFactoryMES/releases/latest",
"offers":{"@type":"Offer","price":"0","priceCurrency":"JPY"}}
</script>
</head>
<body>
<header class="top">
Expand Down
31 changes: 31 additions & 0 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# 検索エンジン向けのサイトマップ。nav_url を持つページ(ガイド・紹介・工場模型)を日英の対応つきで並べる。
# プロジェクトサイトでは robots.txt を置けない(ドメイン直下にしか効かない)ので、Search Console から送る
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{%- assign ja_pages = site.pages | where: "dir", "/" | where_exp: "p", "p.nav_url" | sort: "nav_url" -%}
{%- for p in ja_pages -%}
{%- if p.nav_url == "index.html" -%}{%- assign path = "" -%}{%- else -%}{%- assign path = p.nav_url -%}{%- endif -%}
{%- assign ja = site.site_url | append: path -%}
{%- assign en = site.site_url | append: "en/" | append: path -%}
{%- assign pair = site.pages | where: "dir", "/en/" | where: "nav_url", p.nav_url | first %}
<url>
<loc>{{ ja }}</loc>
{%- if pair %}
<xhtml:link rel="alternate" hreflang="ja" href="{{ ja }}"/>
<xhtml:link rel="alternate" hreflang="en" href="{{ en }}"/>
<xhtml:link rel="alternate" hreflang="x-default" href="{{ ja }}"/>
{%- endif %}
</url>
{%- if pair %}
<url>
<loc>{{ en }}</loc>
<xhtml:link rel="alternate" hreflang="ja" href="{{ ja }}"/>
<xhtml:link rel="alternate" hreflang="en" href="{{ en }}"/>
<xhtml:link rel="alternate" hreflang="x-default" href="{{ ja }}"/>
</url>
{%- endif -%}
{%- endfor %}
</urlset>
3 changes: 2 additions & 1 deletion scripts/GuideEnCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ $jaChars = '[\p{IsHiragana}\p{IsKatakana}\p{IsCJKUnifiedIdeographs}]'
# 対象のページ(Markdown と、レイアウトを使わない独立 HTML)
function Get-Pages([string]$dir) {
if (-not (Test-Path $dir)) { return @() }
Get-ChildItem $dir -File | Where-Object { $_.Extension -in '.md', '.html' }
# 404(404.md)はサイトに1枚だけ置き、日英を並べて書くので対象にしない
Get-ChildItem $dir -File | Where-Object { $_.Extension -in '.md', '.html' -and $_.BaseName -ne '404' }
}
function Get-FrontMatter([string]$path) {
$result = @{}
Expand Down