Skip to content

Commit

Permalink
Merge pull request #13 from vroncevic/dev
Browse files Browse the repository at this point in the history
[gen_pm] Updated docs
  • Loading branch information
vroncevic committed Dec 16, 2023
2 parents 4082ca3 + ca77fbf commit 4592ca1
Show file tree
Hide file tree
Showing 53 changed files with 97 additions and 18,352 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/gen_pm_docker_checker.yml

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/gen_pm_shell_checker.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
name: gen_pm shell checker
name: gen_pm_shell_checker
on:
push:
branches: [ master ]
paths:
- 'sh_tool/**'
pull_request:
branches: [ master ]
paths:
- 'sh_tool/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check syntax script
id: syntax_checker
run: bash -n sh_tool/bin/gen_pm.sh && echo ::set-output name=status::success || echo ::set-output name=status::failure
- uses: actions/checkout@v4
- name: Check size script
id: size_checker
run: |
echo Checking size
code_line_number=$(wc -l < sh_tool/bin/gen_pm.sh)
[[ $code_line_number -gt 300 ]] && echo ::set-output name=status::failure || echo ::set-output name=status::success
- name: Check on failures
if: steps.syntax_checker.outputs.status == 'failure' || steps.size_checker.outputs.status == 'failure'
run: exit 1
modules_ok=0
modules=($(find sh_tool/ -type f -name '*.sh' -exec echo '{}' \;))
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done
[[ $modules_ok -eq 0 ]] && echo ok || exit 1
4 changes: 2 additions & 2 deletions .github/workflows/gen_pm_toc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: gen_pm toc
name: gen_pm_toc
on: push
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v2
- uses: technote-space/toc-generator@v4
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2016 Vladimir Roncevic <elektron.ronca@gmail.com>
# Copyright 2016 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
# limitations under the License.
#

FROM debian:10
FROM debian:12
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive \
apt-get install -yq --no-install-recommends \
Expand All @@ -26,8 +26,8 @@ RUN DEBIAN_FRONTEND=noninteractive \
perl \
perl-doc

RUN wget https://github.com/vroncevic/sh_util/archive/v1.0.zip
RUN unzip v1.0.zip
RUN wget https://github.com/vroncevic/sh_util/archive/1.0.zip
RUN unzip 1.0.zip
RUN find /sh_util-1.0/ -name "*.editorconfig" -type f -exec rm -Rf {} \;
RUN mkdir -p /root/scripts/sh_util/ver.1.0/
RUN cp -R /sh_util-1.0/sh_tool/bin/ /root/scripts/sh_util/ver.1.0/
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.

[![gen_pm shell checker](https://github.com/vroncevic/gen_pm/workflows/gen_pm%20shell%20checker/badge.svg)](https://github.com/vroncevic/gen_pm/actions?query=workflow%3A%22gen_pm+shell+checker%22)
[![gen_pm_shell_checker](https://github.com/vroncevic/gen_pm/actions/workflows/gen_pm_shell_checker.yml/badge.svg)](https://github.com/vroncevic/gen_pm/actions/workflows/gen_pm_shell_checker.yml)

The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
Expand Down Expand Up @@ -73,8 +73,6 @@ lrwxrwxrwx 1 root root 42 Dec 5 04:51 /root/bin/gen_pm -> /root/scripts/gen_pm/

Or You can use docker to create image/container.

[![gen_pm docker checker](https://github.com/vroncevic/gen_pm/workflows/gen_pm%20docker%20checker/badge.svg)](https://github.com/vroncevic/gen_pm/actions?query=workflow%3A%22gen_pm+docker+checker%22)

### Usage

```
Expand All @@ -93,12 +91,16 @@ Sun 05 Dec 2021 04:54:08 AM CET
[check_root] Check permission for current session? [ok]
[check_root] Done
__ _ ___ _ __ _ __ _ __ ___
/ _` |/ _ \ '_ \ | '_ \| '_ ` _ \
| (_| | __/ | | | | |_) | | | | | |
\__, |\___|_| |_| | .__/|_| |_| |_|
|___/ |_|
█████ █████ ███████ ██████ ██████████
██░░░██ ██░░░██░░██░░░██ ░██░░░██░░██░░██░░██
░██ ░██░███████ ░██ ░██ ░██ ░██ ░██ ░██ ░██
░░██████░██░░░░ ░██ ░██ ░██████ ░██ ░██ ░██
░░░░░██░░██████ ███ ░██ █████░██░░░ ███ ░██ ░██
█████ ░░░░░░ ░░░ ░░ ░░░░░ ░██ ░░░ ░░ ░░
░░░░░ ░░
Info github.io/gen_pm ver.2.0
Issue github.io/issue
Expand Down Expand Up @@ -146,12 +148,12 @@ Writing FileCheck/MANIFEST
FileCheck/
├── Changes
├── lib
├── lib/
│   └── FileCheck.pm
├── Makefile.PL
├── MANIFEST
├── README
└── t
└── t/
└── FileCheck.t
2 directories, 6 files
Expand Down Expand Up @@ -183,17 +185,17 @@ sh_tool/

### Docs

[![Documentation Status](https://readthedocs.org/projects/gen_pm/badge/?version=latest)](https://gen_pm.readthedocs.io/projects/gen_pm/en/latest/?badge=latest)
[![Documentation Status](https://readthedocs.org/projects/gen_pm/badge/?version=latest)](https://gen-pm.readthedocs.io/projects/gen_pm/en/latest/?badge=latest)

More documentation and info at
* [https://gen_pm.readthedocs.io/en/latest/](https://gen_pm.readthedocs.io/en/latest/)
* [https://gen_pm.readthedocs.io/en/latest/](https://gen-pm.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)

### Copyright and licence

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Copyright (C) 2016 by [vroncevic.github.io/gen_pm](https://vroncevic.github.io/gen_pm)
Copyright (C) 2016 - 2024 by [vroncevic.github.io/gen_pm](https://vroncevic.github.io/gen_pm)

**gen_pm** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
Expand Down
Binary file removed docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/build/doctrees/index.doctree
Binary file not shown.
4 changes: 0 additions & 4 deletions docs/build/html/.buildinfo

This file was deleted.

124 changes: 0 additions & 124 deletions docs/build/html/_sources/index.rst.txt

This file was deleted.

0 comments on commit 4592ca1

Please sign in to comment.