Commit Graph

224 Commits

Author SHA1 Message Date
6b46b3dbaa ... 2025-08-12 10:36:26 +02:00
4cd5b51085 ... 2025-08-12 10:33:29 +02:00
0a7851b920 ... 2025-08-12 09:41:50 +02:00
a0fdaf395e ... 2025-08-12 09:33:53 +02:00
eaccbe610f ... 2025-08-08 16:28:05 +02:00
53e685241a ... 2025-08-08 16:17:52 +02:00
9d87fc62f3 ... 2025-08-08 16:00:37 +02:00
6308d232aa ... 2025-08-08 15:46:01 +02:00
aa26ae60e2 ... 2025-08-08 09:25:56 +02:00
Mahmoud-Emad
b01e6a5a4c refactor: Centralize Docusaurus site processing logic
- Add central `process_site_from_path` function
- Recursively process heroscript files in `cfg` directory
- Remove duplicated site processing from `run` and `add` commands
- Respect `play` parameter from heroscript `define` block
2025-08-07 16:22:35 +03:00
Mahmoud-Emad
843b20804b refactor: improve docusaurus site creation and handling
- Change site.new to always create/overwrite a site
- Add early exit to site.play if no config exists
- Use explicit sitename from docusaurus.config
- Enable openai.play action processing
- Remove debug code and improve struct initialization
2025-08-07 13:42:53 +03:00
Mahmoud-Emad
6ae6cc35ee Merge branch 'development_fix_hero_and_ci' of https://github.com/freeflowuniverse/herolib into development_fix_hero_and_ci 2025-08-07 10:54:42 +03:00
Mahmoud-Emad
82a46e8149 refactor: overhaul Docusaurus command and generation
- Rework `hero docusaurus` command to use local `cfg` files
- Scan and export doctree collections during site generation
- Fix `baseUrl` redirect path handling in `index.tsx`
- Add cycle detection for `play.include` in playbooks
- Improve site config processing to prevent duplicate items
2025-08-07 10:46:57 +03:00
93953ed570 ... 2025-08-07 08:15:04 +02:00
04403b62a4 ... 2025-08-06 08:50:32 +02:00
c853f3b0ce ... 2025-08-04 08:01:26 +02:00
52f7a7a2b8 Merge branch 'development_ds' into development_fix_herobin
* development_ds:
  refactor: improve config path handling and clean up code
  refactor: dynamically load site config from heroscript
  feat: add multi-site support and playbook enhancements

# Conflicts:
#	lib/web/docusaurus/dsite_configuration.v
2025-08-04 05:41:59 +02:00
Mahmoud-Emad
44effe9a4b refactor: improve config path handling and clean up code
- Allow specifying project root or cfg dir for config
- Remove verbose debug print statements during load
- Remove unused site.page action find operation
- Improve validation for relative paths in remove list
2025-08-03 18:07:53 +03:00
Mahmoud-Emad
2502f0a655 refactor: dynamically load site config from heroscript
- Process heroscript files using a playbook
- Dynamically add config, menus, and page files
- Retrieve site config from the processed playbook
- Override site description from meta config
- Remove unused 'deploykey' flag and import
2025-08-03 17:33:23 +03:00
Mahmoud-Emad
d747977185 feat: add multi-site support and playbook enhancements
- Refactor `site` module to process multiple configurations
- Add environment variable templating for playbook actions
- Activate playbook actions for setting coderoot and params
- Improve docusaurus config with metadata fallbacks
- Fix docusaurus navbar generation when logo is not defined
2025-08-03 12:14:55 +03:00
4b900e383a Merge branch 'development_ds' into development_fix_herobin
* development_ds:
  ...
  refactor: improve session action handling in play_core
  refactor: adapt docusaurus to use generic site module
  ...
  ...
  ...
  ...
  ...
  ...
  ...
  ...
  ...
  ...

# Conflicts:
#	lib/biz/bizmodel/play.v
#	lib/threefold/grid4/cloudslices/play.v
#	lib/threefold/grid4/farmingsimulator/play.v
#	lib/web/docusaurus/dsite.v
#	lib/web/docusaurus/dsite_add.v
#	lib/web/docusaurus/dsite_configuration.v
#	lib/web/docusaurus/dsite_generate.v
2025-08-03 04:47:53 +02:00
Mahmoud-Emad
198a394be8 refactor: improve session action handling in play_core
- Clean up `play_core` by removing dead code and unused imports
- Check `action.name` directly instead of param existence
- Allow 'value' as an alias for 'val' in session env actions
- Use `env_set` for `env_set_once` to avoid duplicate errors
2025-07-31 17:59:44 +03:00
Mahmoud-Emad
697c500e35 refactor: adapt docusaurus to use generic site module
- Introduce a new generic `site` module for web generation
- Update `herocmds` to use the new site creation flow
- Simplify docusaurus playbook logic with a `docusaurus.play` fn
- Refactor site generation to act on `Site` struct directly
- Fix playbook find filter to use wildcard `*`
2025-07-31 14:42:36 +03:00
Mahmoud-Emad
e6c1d84836 refactor: Generalize playbook find method and restructure site module
- Replace `actions_find` with a more generic `find(filter:)`
- Rename `siteconfig` module and related types to `site`
- Introduce a `Site` object to encapsulate configuration
- Update site generation to accept a playbook object directly
- Remove redundant blank lines and format code
2025-07-31 14:02:46 +03:00
e837912363 ... 2025-07-31 03:51:36 +02:00
b99f5ae6e9 ... 2025-07-30 19:17:14 +02:00
1cb6c486df ... 2025-07-30 17:43:39 +02:00
bc163eb61d ... 2025-07-30 17:35:19 +02:00
802f6e074d ... 2025-07-30 15:58:04 +02:00
685a58aa14 ... 2025-07-30 15:21:10 +02:00
2bc2c07114 ... 2025-07-30 15:08:23 +02:00
66757c52d7 ... 2025-07-30 15:00:20 +02:00
9fd551e0f7 ... 2025-07-30 14:37:02 +02:00
705f2d640e ... 2025-07-30 14:27:06 +02:00
0eb4dd38f8 ... 2025-07-30 14:19:16 +02:00
800133ab89 .. 2025-07-30 13:53:54 +02:00
0363e5e661 .. 2025-07-30 13:49:57 +02:00
d2bf58f514 ... 2025-07-30 13:19:17 +02:00
bc92114918 ... 2025-07-30 13:15:09 +02:00
f143e3cf48 ... 2025-07-30 13:01:20 +02:00
f20f5efcb6 ... 2025-07-30 13:00:26 +02:00
1d383faa62 ... 2025-07-30 12:57:32 +02:00
46e425cbc5 Merge branch 'development' of github.com:freeflowuniverse/herolib into development 2025-07-30 12:53:01 +02:00
44d3edca55 ... 2025-07-30 12:52:59 +02:00
Mahmoud-Emad
a44072bd4d fix: add error propagation to git operations
- Add error propagation `!` to git method calls
- Handle potential errors from `gittools.get` and `gs.load`
- Adjust playbook import statement
- Remove unnecessary blank line

Merge branch 'development' of https://github.com/freeflowuniverse/herolib into development
2025-07-30 13:48:36 +03:00
Mahmoud-Emad
957d977147 fix: add error propagation to git operations
- Add error propagation `!` to git method calls
- Handle potential errors from `gittools.get` and `gs.load`
- Adjust playbook import statement
- Remove unnecessary blank line
2025-07-30 13:47:52 +03:00
c038334e67 ... 2025-07-30 12:47:49 +02:00
2f450f7b9b ... 2025-07-30 12:42:53 +02:00
6877de4626 ... 2025-07-25 13:35:30 +02:00
181a81a84a .... 2025-07-25 13:25:48 +02:00