Generate Slideshow-Style Documentation Sites for GitHub Repositories with iFLOW-CLI GitHub Action
The iFLOW team from Alibaba https://www.iflow.cn/ has recently open-sourced a terminal-based AI Agent tool iFLOW CLI, which can currently be used free of charge with powerful models like Qwen3-Coder and Kimi K2. It's another product similar to Anthropic's Claude Code.
iFlow CLI is a powerful AI assistant that runs directly in the terminal. It can seamlessly analyze code repositories, execute programming tasks, understand contextual requirements, and enhance your work efficiency through automated processing from simple file operations to complex workflows.
Since it's a terminal-based AI Agent tool, it can be well utilized with Github Actions to automatically generate slideshow-style documentation sites.
Taking advantage of the release day, I immediately vibe-coded a GitHub Actions based on GitHub Copilot Agent and iFLOW CLI to facilitate large-scale usage in isolated GitHub Actions environments.
Here we'll introduce how to generate slideshow-style documentation sites based on this GitHub Actions. The final effect can be viewed at this website https://vibe-ideas.github.io/iflow-cli-action/#/, with a preview as follows:
Next, let's see how to use this GitHub Actions.
Using iFLOW CLI GitHub Action
To use this iFLOW CLI GitHub Action, you need to create a repository on GitHub https://github.com/new, then create a .github/workflows directory in the repository, and create an iflow-cli-action.yml file in the .github/workflows directory to use the iFLOW CLI GitHub Action:
1 2 3 4 5 6
git clone https://github.com/yourname/your-repo.git cd your-repo
The content of the iflow-cli-action.yml file is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
name:iFlowCLIExample on: [push]
jobs: analyze-code: runs-on:ubuntu-latest steps: -uses:actions/checkout@v4 -name:RuniFlowCLI uses:vibe-ideas/iflow-cli-action@v1.2.0 with: prompt:"Analyze this codebase and suggest improvements" api_key:${{secrets.IFLOW_API_KEY}} model:"Qwen3-Coder" timeout:"1800" extra_args:"--debug"
prompt is the prompt that guides the AI Agent to complete your goal🎯.
secrets.IFLOW_API_KEY is the API access key for iFLOW CLI. You can register an account on the iFLOW CLI official website https://www.iflow.cn/, and then obtain the key through this link https://iflow.cn/?open=setting.
We save the key to the GitHub repository's Secrets to avoid key leakage. Settings -> Secrets and variables -> Actions -> New repository secret, with the secret name IFLOW_API_KEY:
After completing the above configuration, commit the workflow file to the GitHub repository to use this GitHub Actions normally:
Next, let's see how to generate the aforementioned slideshow-style documentation site based on the iFLOW CLI GitHub Action.
Generating Slideshow-Style Documentation Sites with iFLOW CLI GitHub Action
Assuming you already know how to use the iFLOW CLI GitHub Action through the previous text. Here we directly provide the GitHub Actions configuration file for reference. This orchestration file is also placed in a public GitHub repository :
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
Here, iFLOW CLI will generate a slideshow-style documentation site based on the repository's README and reveal.js, and then publish it to the web through GitHub Pages. The effect can be seen at this website 👀 https://version-fox.github.io/vfox-erlang/#/
Conclusion
I look forward to seeing what more creative things you can do with the iFLOW CLI Action~