on: # Allow manual trigger workflow_dispatch: # Also run on pushes to main branch push: branches: [ main ]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents:read pages:write id-token:write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. concurrency: group:"pages" cancel-in-progress:false
-name:GeneratehomepageusingiFlowCLI uses:vibe-ideas/iflow-cli-action@main with: prompt:| Please read only the README.md file content from the current repository (do not read any other files), and convert it into a beautiful slideshow-style documentation website based on Reveal.js and save it as _site/index.html. Requirements: 1.UsetheReveal.jsframeworktobuildaslideshowpresentation,splittingtheREADMEcontentintomultipleslidepagesaccordingtologicalstructure; 2. Slideshow structure design: -Homepage slide:Projecttitle,subtitle,GitHublink,andprojectintroduction -Feature highlights slide:Showcasemainfeaturesandcharacteristics -Installation guide slide:Step-by-stepinstallationprocess -Usage examples slide:Displaycodeexamplesandconfigurationinstructions -Advanced features slide:Showadvancedusageandbestpractices -Closing slide:Acknowledgments,contributionguidelines,andcontactinformation; 3. Use modern Reveal.js themes and configurations: -Enablehorizontalandverticalnavigation -Configureslidetransitionanimationeffects(suchasslide,fade,zoom) -Addprogressbarandslidecounter -Supportkeyboardnavigationandtouchgestures -Enableautoplayfunctionality(pausable) -Addslidethumbnailoverview; 4. Visual design using surreal digital collage style: -Usevividcolorcontrastsandgeometricelements -Createlayeredvisualeffectscombiningtextandgraphicelements -Useirregularshapes,transparency,andoverlappingeffectstocreatedepth -Employdynamicbackgroundsandanimatedtransitionsforvisualimpact -Useabstractgraphicsanddigitalelementsasdecorativeelements -Ensureoveralldesignhasartisticappealandvisualattraction; 5. Font size and layout optimization (important): -Title font sizes:Maintitle2.5em,subtitle1.8em,sectiontitle1.5em -Body text font size:Use1.2em,ensureclearreadabilityonalldevices -Code font size:Use0.9em,avoidcodeblocksbeingtoolargecausinglayoutissues -Line height settings:Bodytext1.6xlineheight,titles1.4xlineheight -Content area margins:Setappropriatepaddingforeachslide(60pxtop/bottom,40pxleft/right) -Ensuresufficientspacingbetweentextandbackground,avoidblockingandoverlap -Limitcontentamountperslidetoavoidinformationoverload -Implementverticalscrollingforlongcodeblocksinsteadofshrinkingfont; 6. Code display optimization: -UseReveal.jscodehighlightingplugin -Supportsyntaxhighlighting(YAML,Bash,Markdown,etc.) -Addlinenumbersandcopybuttons -Useappropriatemaximumheight(60vh)andscrollbarsforcodeblocks -Implementanimateddisplayeffectsforcodesnippets; 7. Interactive features: -Addnavigationmenuandchapterjumping -Implementfullscreenmodeandspeakermode -SupportESCkeytodisplayslideoverview -Addsharingandexportfunctionality; 8. Responsive design: -Ensuregoodexperienceondesktop,tablet,andmobiledevices -Appropriatelyreducefontsizeonmobiledeviceswhilemaintainingreadability -Adaptfontsandlayouttodifferentscreensizes -Optimizeinteractionexperiencefortouchdevices; 9. Technical implementation: -ImportlatestversionofReveal.jsfromCDN -Configurenecessaryplugins(highlight.js,notes,zoom,etc.) -AddcustomCSSstylestoenhancevisualeffects -Ensurefastloadingandsmoothanimationperformance; 10. SEO and accessibility: -Addcompletemetatagsandstructureddata -Ensurekeyboardnavigationaccessibility -Addalttextandarialabels -Optimizesearchengineindexing. PleasedirectlycreateacompleteHTMLfileusinginlineCSSandJavaScript,ensuringthefileisself-containedandcanrundirectlyinbrowsers. Project URL:https://github.com/version-fox/vfox-erlang api_key:${{secrets.IFLOW_API_KEY}} # settings_json: ${{ secrets.IFLOW_SETTINGS_JSON }} model:"Qwen3-Coder" timeout:"1800" extra_args:"--debug"
-name:Verifyreveal.jspresentationwasgenerated run:| if [ -f "_site/index.html" ]; then echo "Reveal.js presentation generated successfully!" echo "Checking for reveal.js content..." if grep -q "reveal.js" "_site/index.html"; then echo "✓ Reveal.js framework detected" else echo "⚠ Warning: Reveal.js framework not found in generated file" fi ls -la _site/ else echo "Error: Presentation was not generated by iFlow" exit 1 fi -name:Uploadartifact uses:actions/upload-pages-artifact@v3 with: path:./_site