Tiko 1.3 and AfxNova Docs as integrated HelpTool

Started by hajubu, March 10, 2026, 04:26:06 PM

Previous topic - Next topic

hajubu

Update - added new versions ...10x  in the attachment ,
-->  windows control Cmenu & menu procedures ( of the last hour)
Hi,
I just played a bit with 'AfxNova-WebView'  and I came up with the idea to integrate a Help Tool for the Docs for 'AfxNova' as html.

1. After a small prep' (fence code rules, validating ) before converting .MD to .Html ;
- Markdown check is done by pandoc - but restricted rules for fence code needs an pre-check with an editor (like npp with regex rule find/replace is fine enough)

2.When using 'pandoc' as a batch job - actual 129 files took less 1 minute ) by keeping the folder structure the same as Jose's doc-folder, it could be used on the "newer" Browser without limits.

2. Fitting some dir_name_idx.html as page index in this structure let me use it as an offline Help.

3. Adding some lines of code for an cini-file to be flexible for the target web root folder in the cw_webview2.bas sample , changing the pWebView2.Navigate(weburl) and the start-index could be called from the webview-app.

4. Even when Jose updates the .md-docs , the maintenance is a small easy-peasy task.
the last adaption today took me only 15 minutes.
The converted .Md-to-.html can just exchanged inside the folder structure.
Even adding a new html file needs no witchcraft.

5. For Integrating in Tiko is no rocket science.  - It works a simple tool , but it helps a lot.


P.S: The '_testpan_AfxNovaWeb10'.zip archive :.9 MB : contains _testpan_AfxNovaWeb10.7z with 971 KB
--> doc file structure as of now for the sources:: html,css only ( no java,.js no php - no need !) size app. 11.5 MB

As Webview2-app is to large for upload , I attach only my sources (*.bas,*.ini) as zip. The names of the ini-file :AfxNovaWeb.ini is at the moment  hardcoded in the functions get_webrootpath() and  get_webrootpuri()

here my template
[AfxNovaWeb]
Root="V:\_testpan\_AfxNovaWeb10\AfxNova_idx.html"
Puri="file:///"
Please do not forrget to adapt it to your needs at least in the ini-file.


b.r. Hans


Paul Squires

Thanks for sharing! After modifying the ini file like you suggested, I was able to get it to run. Good stuff  8)
Paul Squires
PlanetSquires Software

hajubu

thanks Paul,

hope you are feeling well.

Enclosed with some minor correction inside the 'AfxNovaWeb' folder
( + upd from Jose's .md from 260311_2051_internal_zip_Time / AfxNova_main.zip), to be up-to-date with the ongoing evolution.

AfxNovaWebview.bas - no changes - saeme procedure - adapt the ini with your Webrootfolder.

Just in case If you like (?) , I might send you the small batches for the conversion routines.

b.r. Hans