MCPcopy Index your code
hub / github.com/aigis-styleguide/aigis

github.com/aigis-styleguide/aigis @v1.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.1 ↗ · + Follow
32 symbols 41 edges 43 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

⚠️ This project is no longer maintained. ⚠️

aigis

Aigis is a Node.js package that parses comments in your CSS and auto-generate a style guide.

See the Full-documents pxgrid.github.io/aigis/docs (This documents was generated by aigis. 🔗source

Installation

$ npm install --save-dev node-aigis

You can verify node-aigis was installed correctly by running:

$ ./node_modules/.bin/aigis -v
$ 1.x.x

Config file & HTML Templates

aigis require "Config file" & "HTML Templates".

aigis init

This will create an aigis_config.yml file (more on this below)

$ ./node_modules/.bin/aigis init
Created the following files and directories:
  aigis_config.yml
  aigis_assets
  template_ejs

Choose Template Engine

You can choose The following Template engines for generating style guide.

  • EJS(ejs
  • Jade(jade
  • Handlebars(hbs

When you run aigis init, add --engine option.

e.g) choose jade

$ ./node_modules/.bin/aigis init --engine jade

Config file

After aigis init, edit aigis_config.yml. You have to write relative path to your source files on source.

source:
  - ./lib/css
  - ./style.css

Initially, the configuration file contains source: aigis_assets, You can run aigis run then generate sample style guide.

Adding comments

Write following code on CSS comment block (/* ~ */)

It's easy to add Comments. For example.

---
name: base button
category: module/button
---

## This is base button

* Base button style.
* Use `a` or `button` tag.

```html
<a class="btn">Button</a>
```

Running aigis

You're finally ready to generate a style guide!

$ ./node_modules/.bin/aigis run -c ./aigis_config.yml

Then you get following output.

sample

More

See the documents

Core symbols most depended-on inside this repo

parseTree
called by 3
lib/renderer/src/helper/parse_tree.js
renderTree
called by 2
lib/renderer/src/helper/render_tree.js
transform
called by 1
lib/plugin/src/transform/ejs.js
renderer
called by 1
lib/renderer/src/renderer.js
createTreeNode
called by 1
lib/renderer/src/helper/parse_tree.js
createTreeNode
called by 1
lib/parser/src/tree.js
configParser
called by 1
lib/system/src/config_parser.js
Aigis
called by 0
lib/Aigis.js

Shape

Function 32

Languages

TypeScript100%

Modules by API surface

lib/renderer/src/helper/render_tree.js2 symbols
lib/renderer/src/helper/parse_tree.js2 symbols
lib/parser/src/tree.js2 symbols
lib/writer/src/pages.js1 symbols
lib/system/src/timestamp.js1 symbols
lib/system/src/get_root.js1 symbols
lib/system/src/config_parser.js1 symbols
lib/system/src/config_loader.js1 symbols
lib/system/src/collector.js1 symbols
lib/system/src/assets_manager.js1 symbols
lib/syntax/src/component_link.js1 symbols
lib/syntax/index.js1 symbols

For agents

$ claude mcp add aigis \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact