Skip to content

Commit

Permalink
Merge pull request #261 from bearsunday/1page-order
Browse files Browse the repository at this point in the history
Sort one-page manuals according to section order
  • Loading branch information
koriym authored Apr 17, 2024
2 parents 22c4605 + db7de3f commit 086482a
Show file tree
Hide file tree
Showing 107 changed files with 107 additions and 142 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ The documentations are rendered with [Jekyll](http://jekyllrb.com) and hosted a

### Start Server with Docker

AMD
```
./bin/serve.sh
```

ARM
```
docker compose up
./bin/served.sh
```

### Start Server in local Ruby environment

```
bundle exec jekyll serve --watch
./bin/servel.sh
```
2 changes: 1 addition & 1 deletion _includes/manuals/1.0/en/contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<a class="nav-link {% if page.permalink == '/manuals/1.0/en/apidoc.html' %}active{% endif %}" href="/manuals/1.0/en/apidoc.html">API Doc</a>
</li>
<li class="nav-item">
<a class="nav-link {% if page.permalink == '/manuals/1.0/ja/1page.html' %}active{% endif %}" href="/manuals/1.0/ja/1page.html">1 Page</a>
<a class="nav-link {% if page.permalink == '/manuals/1.0/en/1page.html' %}active{% endif %}" href="/manuals/1.0/en/1page.html">1 Page</a>
</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions bin/merge_md_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ def generate_combined_file(language, intro_message)
end

# 以下の行を使用して関数を2言語で呼び出す
generate_combined_file("ja", "これはBEAR.Sundayの全てのマニュアルを1つに集めたページです。")
generate_combined_file("en", "This is the page that collects all BEAR.Sunday manuals in one place.")
generate_combined_file("ja", "これはBEAR.Sundayの全てのマニュアルページを一つにまとめたページです。")
generate_combined_file("en", "This page collects all BEAR.Sunday manuals in one place.")
3 changes: 0 additions & 3 deletions bin/serve.sh

This file was deleted.

3 changes: 3 additions & 0 deletions bin/served.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# This script is used to serve the Jekyll site locally with automatic rebuilding.
docker compose up
6 changes: 6 additions & 0 deletions bin/servel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# This script is used to serve the Jekyll site locally with automatic rebuilding.
# 'bundle exec' ensures we're using the correct versions of each gem according to our Gemfile.lock.
# 'jekyll serve' starts a Jekyll development server.
# '--watch' option automatically rebuilds the site when files are modified.
bundle exec jekyll serve --watch
34 changes: 34 additions & 0 deletions docs/menu.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
index
version
quick-start
tutorial
tutorial2
package
application
module
di
aop
resource
resource_param
resource_link
resource_renderer
router
production
import
database
validation
html
form
content-negotiation
hypermedia-api
psr7
js-ui
stream
cache
swoole
coding-guide
types
test
examples
attribute
apidoc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions manuals/1.0/en/aaas.md → manuals/1.0/en/171.aaas.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ category: Manual
permalink: /manuals/1.0/en/aaas.html
---

##
Application Import
## Application Import

Resources created with BEAR.Sunday have unrivaled re-usability.
You can run multiple applications at the same time and use resources of other applications. You do not need to set up separate web servers.
Expand Down Expand Up @@ -174,4 +173,4 @@ echo $index;

Response is returned with a stateless request REST's resource is like a PHP function. You can get the value in `body` or you can express it like JSON or HTML with `(string)`. You can operate on any resource of the application with two lines except autoload, one line script if you concatenate it.

In this way, resources created with BEAR.Sunday can be easily used from other CMS and framework. You can handle the values of multiple applications at once.
In this way, resources created with BEAR.Sunday can be easily used from other CMS and framework. You can handle the values of multiple applications at once.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions manuals/1.0/ja/api_tutorial.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 47 additions & 0 deletions manuals/1.0/ja/rename.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
mv index.md 10.index.md
mv version.md 20.version.md
mv quick-start.md 30.quick-start.md
mv tutorial.md 40.tutorial.md
mv tutorial2.md 50.tutorial2.md
mv package.md 60.package.md
mv application.md 70.application.md
mv module.md 80.module.md
mv di.md 90.di.md
mv aop.md 100.aop.md
mv resource.md 110.resource.md
mv resource_param.md 120.resource_param.md
mv resource_link.md 130.resource_link.md
mv resource_renderer.md 140.resource_renderer.md
mv router.md 150.router.md
mv production.md 160.production.md
mv import.md 170.import.md
mv database.md 180.database.md
mv validation.md 190.validation.md
mv html.md 200.html.md
mv form.md 210.form.md
mv content-negotiation.md 220.content-negotiation.md
mv hypermedia-api.md 230.hypermedia-api.md
mv psr7.md 240.psr7.md
mv js-ui.md 250.js-ui.md
mv stream.md 260.stream.md
mv cache.md 270.cache.md
mv swoole.md 280.swoole.md
mv coding-guide.md 290.coding-guide.md
mv types.md 300.types.md
mv test.md 310.test.md
mv examples.md 320.examples.md
mv attribute.md 330.attribute.md
mv apidoc.md 340.apidoc.md
mv aaas.md 171.aaas.md
mv database_aura.md 181.database.aura.md
mv database_cake.md 182.database.cake.md
mv database_dbal.md 183.database.dbal.md
mv database_media.md 184.database.media.md
mv databasev1.md 185.databasev1.md
mv html-qiq.md 201.html-qiq.md
mv html-twig-v1.md 202.html-twig-v1.md
mv html-twig-v2.md 203.html-twig-v2.md
mv resource_bp.md 121.resource_bp.md
mv resource_cache.md 122.resource_cache.md
mv request.md 151.request.md
mv api_tutorial.md 231.api_tutorial.md
Empty file removed manuals/1.0/ja/request.md
Empty file.
117 changes: 0 additions & 117 deletions manuals/1.0/ja/resource_cache.md

This file was deleted.

10 changes: 10 additions & 0 deletions manuals/sort.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# 対象のディレクトリ
dir="1.0/en"

# フォルダリストを保存するファイル
output_file="folders.txt"

# ディレクトリ内のサブフォルダをリストアップしてファイルに保存
find "$dir" -mindepth 1 -maxdepth 1 -type d | sort > "$output_file"

0 comments on commit 086482a

Please sign in to comment.