Update
--> 260314_0033_/260314_1012 graphics object, webview2 and some minor changes
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\_AfxNovaWeb14\AfxNova_idx.html"
Puri="file:///"
Please do not forget to adapt it to your needs at least in the ini-file.
b.r. Hans
Thanks for sharing! After modifying the ini file like you suggested, I was able to get it to run. Good stuff 8)
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
It's me
-> 260314_0033_/260314_1012 graphics object, webview2 and some minor changes
Attachment updated to actual folder structure and contents.
b.r.
It's me
Updated attachment to the commit of Mar-18_2603_1600_2bb4f77
please consider to download also the AfxNova-main to get the newest templates synchronized with AfxNova-files (*.bi,*inc) and the docs.
b.r. Hans
-------------------
Hi there,
--> updated attachment _testpan_AfxNovaWeb16x_2603_2340.zip
to be update with the changed structure and content according to Jose's commit "c1dd68f" )
--> running now also in web-server (apache based)
--> do not forget , as said before , to adapt the needed AfxNovaWeb.ini for your $env:xxx if using AfxNova_WebView2.bas.
Have fun !
b.r. Hans
Attachment removed - next post - update - 20260322 -
It's me - update for Mar-21,2026
Hi,there
the attachment "_testpan_AfxNovaWeb21_2603_1400_3d1596d.zip" contains the latest update,
mainly for the doc in the databases chapter and cadodb.inc + 2 GLCTX*.bas )
For the Webview2-app enclosed are the sources (*.bas,*.ini) as zip.
The names of the ini-file :AfxNovaWeb.ini are hardcoded in the functions get_webrootpath() and get_webrootpuri()
--> do not forget , to adapt the AfxNovaWeb.ini for your $env:xxx if using AfxNova_WebView2.bas
--> please consider to download also the AfxNova-main to be synchronized with AfxNova-files
--> unzip to folder AfxNovaWeb and try to start with the index (AfxNova_idx. or AfxNovaTest_idx)
--> it runs also in an web-server without changes
Have fun !
Hans
please use the revised attachment in the next post 2603-03-22 #6
please use this revised attachment as there some gremlins at work .
!! checked and tested in file and web !! :: _AfxNovaWeb21-revised_2603_1400_3d1596d
Sorry for the trouble, b.r. Hans
---
--> do not forget , to adapt the AfxNovaWeb.ini for your $env:xxx if using AfxNova_WebView2.bas
--> please consider to download also the AfxNova-main to be synchronized with AfxNova-files
--> unzip to folder AfxNovaWeb and try to start with the index (AfxNova_idx. or AfxNovaTest_idx)
--> it runs also on (linux) web-server without changes
It'me
hi, just a small update based on
(_AfxNova_260322_2120-5e7a4a4 :: 2 *.inc and CPager.md) +
(_AfxNova_260324_2350_9848bb3 :: 2 *.inc and Procedurs.md )
Have fun
b.r. Hans
P.S. --> do not forget , to adapt the AfxNovaWeb.ini for your $env:xxx if using AfxNova_WebView2.bas
--> please consider to download also the AfxNova-main to be synchronized with AfxNova-files
--> unzip to folder AfxNovaWeb and try to start with the index (AfxNova_idx. or AfxNovaTest_idx)
--> it runs also on (linux) web-server without changes
It'me
hi, just todays kum.update based on
(_AfxNova_260423_1442-20a69ad :: Datepicker.md , Date Picker)
and also related to (260421 , 260411 , 260410) upd.
Have fun , b.r. Hans
P.S. --> do not forget , to adapt the AfxNovaWeb.ini for your $env:xxx
if using AfxNova_WebView2.bas (which is directly adapted from CW_Webview2.bas
(see J.R. examples folder or my added template.zip)
--> please consider to download also the AfxNova-main to be synchronized with AfxNova-files
--> unzip to folder AfxNovaWeb and try to start with the index (AfxNova_idx. or AfxNovaTest_idx)
--> it runs also on (linux) web-server without changes
It's me - with todays (26-04-25) kumulative.update based on
AfxNova_260424_2045_97ed556:: doc-updates (Windows, Graphics, Listview,...)
which follows the related uploads in Examples,Template AND AfxNova-files.
b.r. Hans
--> please consider to download also the AfxNova-main to be synchronized with AfxNova-files
--> unzip to folder AfxNovaWeb and try to start with the index (AfxNova_idx. or AfxNovaTest_idx)
--> it runs also on (linux) web-server without changes
--> do not forget , to adapt the AfxNovaWeb.ini for your $env:xxx
if using AfxNova_WebView2.bas (which is directly adapted from CW_Webview2.bas
(see J.R. examples folder or my added template.zip)