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

Armbian Build Framework Script [DOC-1] #5894

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

Tearran
Copy link
Contributor

@Tearran Tearran commented Nov 8, 2023

Pull Request Description

Documentation-Focused: Armbian Build Framework

Overview

This pull request introduces a user-friendly script that acts as a bridge to interact with the Armbian Build Framework. Its main goal is to enhance accessibility and facilitate communication for users who may not be familiar with the underlying script.

Key Features

  • Provides a simplified interface for easier interaction.
  • Improves documentation with enhanced help messages.
    - Supports multiple system languages (English, German, Spanish). todo
  • JSON output.
  • HTML output.
  • Markdown output.
  • bash menu output
  • whiptail/dialog output

Future Enhancements

  • Implementation of man pages generation.

Testing

Extensive testing will be conducted to ensure accurate and complete documentation generation, as well as fine-tuning of output formats for optimal readability.

Additional Information

The primary focus of this implementation is to enhance the accessibility and comprehensibility of the Armbian Build Framework through robust documentation.

## Pull Request Description

### Documentation-Centric: Armbian Build Framework Wrapper Script

#### Overview
This pull request introduces a wrapper script designed with a strong emphasis on generating comprehensive and user-friendly documentation for the Armbian Build Framework. The implementation aims to provide various output formats, including man pages, markdown, and potentially JSON, to cater to different aspects of the larger system.

#### Features Implemented
- Added a basic wrapper script to provide a simplified interface.
- Improved help messages for better documentation.
- Initial support for multiple system languages (English, German, Spanish).
#### Features to be Implemented
- Implemented functionality to generate man pages for the wrapper script.
- Integrated support for generating markdown documentation.
- Designed with flexibility to potentially output JSON documentation.

#### Continuinf Testing
- Rigorous testing of the documentation generation process to ensure accuracy and completeness.
- Fine-tuning of the output formats for optimal readability.

#### Additional Notes
- The primary focus of this implementation is to enhance the accessibility and comprehensibility of the Armbian Build Framework through robust documentation.
@Tearran Tearran changed the title Add files via upload Documentation-Centric: Armbian Build Framework Wrapper Script [DOC-1] Nov 8, 2023
@adeepn
Copy link
Member

adeepn commented Nov 9, 2023

You are doing something strange with localization)

https://mywiki.wooledge.org/BashFAQ/098

drooped example functions to fix language switching. json output seems working
@Tearran
Copy link
Contributor Author

Tearran commented Nov 9, 2023

You are doing something strange with localization)

https://mywiki.wooledge.org/BashFAQ/098

@adeepn It seems like you found something interesting with localization! I appreciate the link to the BashFAQ, and running LANGUAGE=es_ES ./armbian-build.sh was quite insightful.

I want to mention that the language selection in my script was primarily a placeholder for addressing locales. The main focus was on formatting the English output into JSON, key pairs, and dialog boxes. A loop for gettext could potentially be set up to improve localization.

It's a work in progress, and I'm open to any suggestions or improvements.

Thanks for your input!

@Tearran
Copy link
Contributor Author

Tearran commented Nov 10, 2023

Quick Video showing the outputs

https://youtu.be/W1GXxkw-0zs

Example of the html output

https://codepen.io/Tearran/pen/ZEwKaXe

Quick use

{
wget https://raw.githubusercontent.com/Tearran/build/DOC-1/armbian-build ; 
bash ./armbian-build -h ;
}

@Tearran Tearran changed the title Documentation-Centric: Armbian Build Framework Wrapper Script [DOC-1] Documentation-Centric: Armbian Build Framework Script [DOC-1] Nov 10, 2023
@igorpecovnik igorpecovnik added Needs review Seeking for review Work in progress Unfinished / work in progress Software labels Nov 15, 2023
@github-actions github-actions bot removed the Software label Nov 19, 2023
@Tearran Tearran changed the title Documentation-Centric: Armbian Build Framework Script [DOC-1] Armbian Build Framework Script [DOC-1] Nov 21, 2023
@Tearran Tearran closed this Nov 24, 2023
@Tearran Tearran reopened this Nov 24, 2023
| Feature |  desc | example | src_reference | status |

| :-----: | :---: | :---: | :-----: | :---------: |

quick formatting to array and a markdown table
@github-actions github-actions bot added the size/medium PR with more then 50 and less then 250 lines label Mar 15, 2024
@Tearran
Copy link
Contributor Author

Tearran commented Mar 15, 2024

Will output features.md and featuesr.sh
for example

Hidden_options

Feature desc example src_reference status
ARMBIAN_MIRROR Overrides automated mirror selection null references active
AUFS Include support for AUFS null references active

@Tearran
Copy link
Contributor Author

Tearran commented Mar 15, 2024

Quick conversions of https://github.com/armbian/build/pull/6389/files

This is a great array. as

Tried to make PR update, maybe idea is enough to talk.

@Tearran Tearran mentioned this pull request Mar 15, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs review Seeking for review size/medium PR with more then 50 and less then 250 lines Work in progress Unfinished / work in progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants