
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Squib is a Ruby DSL for prototyping card and board games. Write a little bit of Ruby, define your deck's stats, then compile your game into a series of images ready for print-and-play or even print-on-demand. Squib is very data-driven and built on the principle of Don't Repeat Yourself. Think of it like nanDeck done "the Ruby way". Squib supports:
xlsx and csv filesSquib is based on the Cairo graphics rendering engine, the library of choice for WebKit, Gecko, Inkscape and many, many others.
Check this out.
rubyrequire 'squib' Squib::Deck.new(cards: 2) do text str: %w(Hello World!) save_png end
We just created a 2-card deck with "Hello" on the first card, and "World" on the second, and saved them out to PNGs.
Wanna see more? Check out the website: http://andymeneely.github.io/squib/
Squib requires Ruby 2.5 or later.
Install it yourself with:
$ gem install squib
If you're using Bundler, add this line to your application's Gemfile:
gem 'squib'
And then execute:
$ bundle
More info: http://squib.readthedocs.org/en/latest/install.html
After installing Squib, you can create a project and run your first build like this:
sh$ squib new my-cool-game $ cd my-cool-game $ ruby deck.rb
The squib new command will generate files and folders like this:
├── .gitignore ├── ABOUT.md ├── Gemfile ├── IDEAS.md ├── PLAYTESTING.md ├── PNP NOTES.md ├── RULES.md ├── Rakefile ├── _output │ └── gitkeep.txt ├── config.yml ├── deck.rb └── layout.yml 12 files
Go http://squib.readthedocs.org/
Also:
samples directory in the https://github.com/andymeneely/squib has lots of examples.Squib tries to keep you DRY (Don't Repeat Yourself) with the following features:
range parameter in Squib is very flexible, meaning that one text command can specify different text in different fonts, styles, colors, etc. for each card. If you find yourself doing multiple text command for the same field across different ranges of cards, there's probably a better way to condense.config.yml file.Want to run in a controlled environment? We've got a https://cloud.docker.com/u/andymeneely/repository/docker/andymeneely/squib
Here's one way to run it. On the command line, go to the root of your repository. With these commands, we'll map the current directory to the /usr/src/app directory in the Docker image. When squib-in-docker read & writes files from there, it'll write it back out to your current directory.
Assuming you have a script called hello.rb:
On Windows:
docker run --rm -v "%cd%":/usr/src/app andymeneely/squib ruby hello.rb
On Macs:
docker run --rm -v "$PWD":/usr/src/app andymeneely/squib ruby hello.rb
This will create a folder called _output in your current directory and write the output of the script there.
We're still working on ways to customize your own Docker build (e.g. document building, custom fonts, etc.) with your own Dockerfile. Pull requests and ideas welcome!
See http://squib.readthedocs.org/en/latest/help.html
Truthfully, I just thought it was a cool, simple word that was not used much in the Ruby community nor the board game community. But, now that I've committed to the name, I've realized that:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务