使用 iFLOW-CLI GitHub Action 和 Qwen3-Coder 給 GitHub 倉庫生成幻燈片風格的文檔站點

阿里的心流 https://www.iflow.cn/ 團隊最近開源了一款基于終端的 AI Agent 工具 iFLOW CLI, 目前可以免費使用到強大的 Qwen3-Coder、Kimi K2 等模型。又是一款類似 Anthropics Claude Code 的產品。

iFlow CLI 是一款直接在終端中運行的強大 AI 助手。它能夠無縫分析代碼倉庫、執行編程任務、理解上下文需求,通過自動化處理從簡單的文件操作到復雜的工作流程,全面提升您的工作效率。

既然是基于終端的 AI Agent 工具,那么就可以很好的利用 Github Action 來實現在文檔內容更新之后, 自動生成幻燈片風格的文檔站點。

趁著發布當日,立馬基于 GitHub Copilot Agent、iFLOW CLI vibe coding 了一個 GitHub Actions 來方便在隔離的 GitHub Actions 環境中大規模使用。

GitHub Actions https://github.com/marketplace/actions/iflow-cli-action 已經發布到了 GitHub 的 Marketplace 市場。歡迎來玩~

這里我們介紹如何基于這個 GitHub Actions 來生成幻燈片風格的文檔站點,最終的效果可以查看這個網站 https://vibe-ideas.github.io/iflow-cli-action/#/, 預覽效果如下:
在這里插入圖片描述

iflow-action-usage-demo GIF

接下來我們看看如何使用這個 GitHub Actions.

使用 iFLOW CLI GitHub Action

如果想要使用這個 iFLOW CLI GitHub Action, 你需要在 GitHub 中創建一個代碼庫 https://github.com/new, 然后在代碼庫中創建一個 .github/workflows 目錄,在 .github/workflows 目錄下創建一個 iflow-cli-action.yml 文件使用 iFLOW CLI GitHub Action:

git clone https://github.com/yourname/your-repo.git
cd your-repomkdir -p .github/workflows
touch .github/workflows/iflow-cli-action.yml

iflow-cli-action.yml 文件內容如下:

name: iFlow CLI Example
on: [push]jobs:analyze-code:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- name: Run iFlow CLIuses: vibe-ideas/iflow-cli-action@v1.2.0with:prompt: "Analyze this codebase and suggest improvements"api_key: ${{ secrets.IFLOW_API_KEY }}model: "Qwen3-Coder"timeout: "1800"extra_args: "--debug"

prompt 即提示詞,指導 AI Agent 完成你的目標🎯. 模型我們選用了 Qwen3-Coder.

secrets.IFLOW_API_KEY 是 iFLOW CLI 的 API 接口訪問密鑰,你可以在 iFLOW CLI 官網 https://www.iflow.cn/ 注冊一個賬號,然后通過這個鏈接可以獲取到密鑰 https://iflow.cn/?open=setting.

我們將密鑰保存到 GitHub 倉庫的 Secrets 中,避免密鑰泄露。Settings -> Secrets and variables -> Actions -> New repository secret, Secrets 名為 IFLOW_API_KEY:

iflow-cli-action-settings-1.jpg

iflow-cli-action-settings-2.jpg

以上配置完成后,將工作流文件提交到 GitHub 倉庫中就可以正常使用這個 GitHub Actions 了:

git add .
git commit -m "add iflow-cli-action.yml"
git push

推送之后,一般可以在代碼倉庫的 Actions 中看到運行過程和結果,效果如下 https://github.com/vibe-ideas/iflow-cli-action/actions/runs/16844856504:

iflow-cli-action-settings-2.jpg

接下來我們再看看如何基于 iFLOW CLI GitHub Action 生成前文提到的幻燈片風格的文檔站點。

基于 iFLOW CLI GitHub Action 生成幻燈片風格的文檔站點

相信通過前文,你已經知道如何使用 iFLOW CLI GitHub Action. 這里我們直接給出 GitHub Actions 的配置文件,方便大家參考,這個編排文件也放到了一個 GitHub 公開倉庫中 :

name: Build and Deploy Homepageon:# Allow manual triggerworkflow_dispatch:# Also run on pushes to main branchpush:branches: [ main ]# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:contents: readpages: writeid-token: write# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:group: "pages"cancel-in-progress: falsejobs:build:runs-on: ubuntu-latestenv:GITHUB_PAGES: truesteps:- name: Checkout repositoryuses: actions/checkout@v4- name: Setup Pagesuses: actions/configure-pages@v4- name: Create homepage directoryrun: mkdir -p _site- name: Generate homepage using iFlow CLIuses: vibe-ideas/iflow-cli-action@mainwith: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. Use the Reveal.js framework to build a slideshow presentation, splitting the README content into multiple slide pages according to logical structure;2. Slideshow structure design:- Homepage slide: Project title, subtitle, GitHub link, and project introduction- Feature highlights slide: Showcase main features and characteristics- Installation guide slide: Step-by-step installation process- Usage examples slide: Display code examples and configuration instructions- Advanced features slide: Show advanced usage and best practices- Closing slide: Acknowledgments, contribution guidelines, and contact information;3. Use modern Reveal.js themes and configurations:- Enable horizontal and vertical navigation- Configure slide transition animation effects (such as slide, fade, zoom)- Add progress bar and slide counter- Support keyboard navigation and touch gestures- Enable autoplay functionality (pausable)- Add slide thumbnail overview;4. Visual design using surreal digital collage style:- Use vivid color contrasts and geometric elements- Create layered visual effects combining text and graphic elements- Use irregular shapes, transparency, and overlapping effects to create depth- Employ dynamic backgrounds and animated transitions for visual impact- Use abstract graphics and digital elements as decorative elements- Ensure overall design has artistic appeal and visual attraction;5. Font size and layout optimization (important):- Title font sizes: Main title 2.5em, subtitle 1.8em, section title 1.5em- Body text font size: Use 1.2em, ensure clear readability on all devices- Code font size: Use 0.9em, avoid code blocks being too large causing layout issues- Line height settings: Body text 1.6x line height, titles 1.4x line height- Content area margins: Set appropriate padding for each slide (60px top/bottom, 40px left/right)- Ensure sufficient spacing between text and background, avoid blocking and overlap- Limit content amount per slide to avoid information overload- Implement vertical scrolling for long code blocks instead of shrinking font;6. Code display optimization:- Use Reveal.js code highlighting plugin- Support syntax highlighting (YAML, Bash, Markdown, etc.)- Add line numbers and copy buttons- Use appropriate maximum height (60vh) and scrollbars for code blocks- Implement animated display effects for code snippets;7. Interactive features:- Add navigation menu and chapter jumping- Implement fullscreen mode and speaker mode- Support ESC key to display slide overview- Add sharing and export functionality;8. Responsive design:- Ensure good experience on desktop, tablet, and mobile devices- Appropriately reduce font size on mobile devices while maintaining readability- Adapt fonts and layout to different screen sizes- Optimize interaction experience for touch devices;9. Technical implementation:- Import latest version of Reveal.js from CDN- Configure necessary plugins (highlight.js, notes, zoom, etc.)- Add custom CSS styles to enhance visual effects- Ensure fast loading and smooth animation performance;10. SEO and accessibility:- Add complete meta tags and structured data- Ensure keyboard navigation accessibility- Add alt text and aria labels- Optimize search engine indexing.Please directly create a complete HTML file using inline CSS and JavaScript, ensuring the file is self-contained and can run directly in browsers.Project URL: https://github.com/version-fox/vfox-erlangapi_key: ${{ secrets.IFLOW_API_KEY }}# settings_json: ${{ secrets.IFLOW_SETTINGS_JSON }}model: "Qwen3-Coder"timeout: "1800"extra_args: "--debug"- name: Verify reveal.js presentation was generatedrun: |if [ -f "_site/index.html" ]; thenecho "Reveal.js presentation generated successfully!"echo "Checking for reveal.js content..."if grep -q "reveal.js" "_site/index.html"; thenecho "? Reveal.js framework detected"elseecho "? Warning: Reveal.js framework not found in generated file"fils -la _site/elseecho "Error: Presentation was not generated by iFlow"exit 1fi- name: Upload artifactuses: actions/upload-pages-artifact@v3with:path: ./_sitedeploy:environment:name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-latestneeds: buildsteps:- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pages@v4

這里 iFLOW CLI 將會基于代碼倉庫的 README 和 reveal.js 生成幻燈片風格的文檔站點,然后通過 GitHub Pages 發布到網絡上。這里的效果可以訪問這個網站看到 👀 https://version-fox.github.io/vfox-erlang/#/

結語

期待你能基于 iFLOW CLI Action, 玩出更多的花樣~

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/pingmian/92605.shtml
繁體地址,請注明出處:http://hk.pswp.cn/pingmian/92605.shtml
英文地址,請注明出處:http://en.pswp.cn/pingmian/92605.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

【2025最新】在 macOS 上構建 Flutter iOS 應用

推薦超級課程: 本地離線DeepSeek AI方案部署實戰教程【完全版】Docker快速入門到精通Kubernetes入門到大師通關課AWS云服務快速入門實戰 目錄軟件要求操作系統開發工具文本編輯器或集成開發環境安裝 Flutter SDK下載并安裝 Flutter將 Flutter 添加到您的PATH配置 i…

MySQL 臨時表詳細說明

目錄 MySQL 臨時表詳細說明 1. 定義 2. 核心特性 3. 創建與使用 4. 典型應用場景 5. 生命周期管理 6. 注意事項 7. 性能優化建議 MySQL 臨時表詳細說明 1. 定義 臨時表是存儲在內存或磁盤上的臨時性數據表,僅在當前數據庫會話中存在。會話結束時自動銷毀&a…

深入解析 Apache APISIX 在微服務網關中的性能優化實踐指南

深入解析 Apache APISIX 在微服務網關中的性能優化實踐指南 文章類型:性能優化實踐指南 技術領域:微服務架構 —— API 網關 文章結構:原理深度解析型 目標讀者:有一定微服務與運維基礎的后端開發工程師一、技術背景與應用場景 隨…

【Spring Boot刷新上下文核心流程詳解】

Spring Boot 刷新上下文核心流程詳解 一、前言 在使用 Spring Boot 啟動應用時,控制臺會打印出一大串日志,其中最核心的啟動動作之一就是 刷新上下文(refresh)。 refresh 方法不僅負責 Bean 的創建與初始化,還涉及監…

關于過濾器(Filter)的學習

過濾器(Filter)概述 過濾器是 Java Servlet 規范的一部分,用于在請求到達 Servlet 之前或響應返回客戶端之前攔截請求和響應。它可以用于執行各種任務,如請求預處理、響應后處理、身份驗證、日志記錄等。 過濾器的作用 預處理請…

Spring AI 打造智能面試人實戰

Spring AI人工智能面試機器人相關實例 以下是與Spring AI人工智能面試機器人相關的實用案例,涵蓋技術實現、功能設計及常見問題解決方案,按應用場景分類呈現: 技術集成案例 調用Hugging Face模型庫處理專業領域問題 通過Spring Security添加面試會話身份驗證 結合WebSoc…

QT 程序發布時候調用自定義動態庫

1、需要在pro文件中增加下面的內容:QMAKE_LFLAGS "-Wl,-rpath,\\$$ORIGIN\" QMAKE_LFLAGS "-Wl,-rpath,\\$$ORIGIN/lib\" QMAKE_LFLAGS "-Wl,-rpath,\\$$ORIGIN/../lib\"其中lib為動態庫的文件夾名稱,可以根據自己喜好…

SpringBoot學習日記 Day6:解鎖微服務與高效任務處理

一、開篇:從單體到微服務的思維轉變剛開始接觸微服務時,我總習慣把所有功能寫在一個項目里。直到項目越來越臃腫,每次修改都要全量部署,才意識到微服務架構的價值。今天我們就來探索SpringBoot在微服務場景下的強大能力&#xff0…

機械學習--DBSCAN 算法(附實戰案例)

DBSCAN 算法詳解DBSCAN(Density-Based Spatial Clustering of Applications with Noise,帶噪聲的基于密度的空間聚類應用)是一種經典的密度聚類算法,由 Martin Ester 等人于 1996 年提出。與 K-means 等基于距離的聚類算法不同&am…

【昇騰】基于RK3588 arm架構Ubuntu22.04系統上適配Atlas 200I A2加速模塊安裝EP模式下的驅動固件包_20250808

一、背景 1.1 主要的硬件是:1.2 主要的軟件是: RK3588跑操作系統Atlas 200I A2加速模塊作為EP模式關鍵參數版本說明CPU架構aarch64OS版本Ubuntu 22.04.5 LTSkernel版本5.10.198 二、適配 準備固件run包文件:Ascend-hdk-310b-npu-firmware_7.…

如何在 VS Code 中進行 `cherry-pick`

cherry-pick 是 Git 的一個功能,允許你選擇某個 commit 并將其應用到當前分支,而無需合并整個分支。在 VS Code 中,你可以通過 內置的 Git 功能 或 終端 來完成 cherry-pick。方法 1:使用 VS Code 的 Git 圖形界面(GUI…

STM32CubeMX(十三)FatFs文件系統(SPI驅動W25Qxx)

目錄 一、知識點 1. 什么是Fatfs文件系統? 2. Fatfs操作系統控制流程 二、實戰操作 1.CubeMX配置 2. 配置串口以及SPI 3. 修改功能映射接口 4. 添加測試代碼 5. 實驗現象 在完成本章之前需要完成一些基礎配置,詳情查看下面的文章。 STM32CubeMX(二)新建工…

【前端后端部署】將前后端項目部署到云服務器

更多筆記在這里? 全棧之路: https://gitee.com/oldbe/notes 【跳轉到】 覺得有用請點個 star ,非常感謝! 現在AI太強大,開發個人產品的門檻和成本太低了,只要你有好的想法都可以很快速的開發一款產品 1.…

vue如何監聽localstorage

在Vue中監聽localStorage的變化可以通過幾種方式實現,但需要注意的是,localStorage本身不提供原生的事件監聽機制,如DOM元素的MutationObserver。不過,你可以通過一些間接的方法來監聽localStorage的變化。方法1:使用w…

灰狼算法+四模型對比!GWO-CNN-LSTM-Attention系列四模型多變量時序預測

摘要:聚劃算!大對比!灰狼算法四模型對比!GWO-CNN-LSTM-Attention系列四模型多變量時序預測,該代碼特別適合需要橫向對比不同深度學習模型性能的時序預測場景,研究者可通過參數快速適配不同預測需求&#xf…

冒泡排序實現以及優化

一,冒泡排序說明冒泡排序是從第一個元素開始和后面一個元素進行判斷是否滿足左小右大,如果不滿足就交換位置,再拿第二個和第三個進行上述操作一直到第n-1和第n個。經過上述的一輪操作就可以把第一個最大值放到最右邊,在進行n輪上述…

水下管道巡檢機器人cad【10張】三維圖+設計說明書

摘 要 水下管道是水下油氣管道的生命線,水下管道巡檢機器人可以替代人工完成水下油氣管道狀態的實時監測和數據反饋,有助于工作人員對水下油氣管道的運行情況實時掌握。 本文完成了水下管道巡檢機器人的總體設計,采用三維設計軟件Solidwor…

SQL(結構化查詢語言)的四大核心分類

這張圖展示了 SQL(結構化查詢語言)的四大核心分類,分別對應不同的數據庫操作場景。以下是逐類解析:1. 數據操作語言(DML:Data Manipulation Language)作用:用于操作數據庫中的數據&a…

AI(1)-神經網絡(正向傳播與反向傳播)

🍋🍋AI學習🍋🍋🔥系列專欄: 👑哲學語錄: 用力所能及,改變世界。 💖如果覺得博主的文章還不錯的話,請點贊👍收藏??留言📝支持一下博主…

嵌入式Linux學習 - 數據結構6

五、哈希表1. 哈希算法將數據通過哈希算法映射成一個鍵值,存取都在同一位置實現數據的高效存儲和查找將時間復雜度盡可能降低至O(1)2. 哈希碰撞多個數據通過哈希算法得到的鍵值相同,稱為產生哈希碰撞3. 哈希表構建哈希表存放0-100之間的數據將0 - 100之間…