Skip to content

Commit ee9e3f3

Browse files
committed
Update webpage
Signed-off-by: Rahul Krishna <rkrsn@ibm.com>
1 parent 0c8a9cf commit ee9e3f3

3 files changed

Lines changed: 22 additions & 46 deletions

File tree

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig({
2424
"codeanalyzer-java is the JVM static-analysis backend behind CodeLLM-DevKit's Java support: a standalone JAR that turns a Java project into a symbol table and call graph, emitted as one versioned JSON schema.",
2525
logo: {
2626
src: "./src/assets/logo.png",
27-
replacesTitle: false,
27+
replacesTitle: true,
2828
},
2929
favicon: "/favicon.png",
3030
customCss: ["./src/styles/docs.css"],

src/content/docs/index.mdx

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: codeanalyzer-java
33
description: The WALA + Javaparser static-analysis backend behind CodeLLM-DevKit's Java support — a standalone JAR that turns a Java project into a symbol table and call graph, emitted as one versioned JSON schema.
4-
template: splash
4+
template: doc
55
hero:
66
tagline: One JAR turns an enterprise Java project into a symbol table and call graph — emitted as a single versioned JSON schema your tools can consume.
77
actions:
@@ -19,47 +19,10 @@ hero:
1919
variant: minimal
2020
---
2121

22-
import { Card, CardGrid, LinkCard } from "@astrojs/starlight/components";
23-
24-
```bash frame="none"
25-
java -jar codeanalyzer-2.3.7.jar -i /path/to/project -a 2 -o ./output
26-
```
22+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
2723

2824
Point **codeanalyzer-java** at a Java project and get back `analysis.json` — a single document describing every class, method, field, and import in the codebase, plus an interprocedural call graph computed by WALA. The schema is the *same shape* the CLDK Python SDK deserializes into typed models, so whatever consumes it — an agent, a script, or the SDK — works against structured analysis instead of raw source.
2925

30-
## What it produces
31-
32-
<ul class="cldk-capabilities">
33-
<a class="cldk-capability" href="/codeanalyzer-java/schema/symbol-table/">
34-
<p class="cldk-capability__title">Symbol table</p>
35-
<p class="cldk-capability__def">Every type, method, field, and import — typed and located in source.</p>
36-
<pre class="cldk-capability__thumb">symbol_table[file].type_declarations
37-
.callable_declarations</pre>
38-
<ul class="cldk-capability__examples"><li>List every method in a class</li><li>Pull a method's source body and span</li></ul>
39-
</a>
40-
<a class="cldk-capability" href="/codeanalyzer-java/schema/call-graph/">
41-
<p class="cldk-capability__title">Call graph</p>
42-
<p class="cldk-capability__def">Who-calls-whom as explicit caller→callee edges from WALA.</p>
43-
<pre class="cldk-capability__thumb">call_graph[].source
44-
call_graph[].target</pre>
45-
<ul class="cldk-capability__examples"><li>Find every caller of a method</li><li>Walk callees transitively</li></ul>
46-
</a>
47-
<a class="cldk-capability" href="/codeanalyzer-java/frameworks/entry-points/">
48-
<p class="cldk-capability__title">Entry points</p>
49-
<p class="cldk-capability__def">Main methods and framework endpoints — Spring, JAX-RS, Struts, Servlets.</p>
50-
<pre class="cldk-capability__thumb">callable.is_entrypoint
51-
type.is_entrypoint_class</pre>
52-
<ul class="cldk-capability__examples"><li>Find REST endpoints</li><li>Seed reachability from real entry points</li></ul>
53-
</a>
54-
<a class="cldk-capability" href="/codeanalyzer-java/frameworks/crud/">
55-
<p class="cldk-capability__title">CRUD operations</p>
56-
<p class="cldk-capability__def">JPA persistence calls classified as CREATE / READ / UPDATE / DELETE.</p>
57-
<pre class="cldk-capability__thumb">callable.crud_operations
58-
callable.crud_queries</pre>
59-
<ul class="cldk-capability__examples"><li>Audit data-access patterns</li><li>Find every read/write to storage</li></ul>
60-
</a>
61-
</ul>
62-
6326
## Start here
6427

6528
<CardGrid>
@@ -77,9 +40,3 @@ callable.crud_queries</pre>
7740
<LinkCard title="Analysis levels" description="Level 1 (symbol table) vs. level 2 (+ call graph), and what each costs." href="/codeanalyzer-java/guides/analysis-levels/" />
7841
<LinkCard title="Python SDK integration" description="How CLDK shells out to this JAR and wraps the output as JavaAnalysis." href="/codeanalyzer-java/integration/python-sdk/" />
7942
</CardGrid>
80-
81-
<p class="cldk-badges">
82-
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-green?style=for-the-badge" alt="License Apache 2.0" /></a>
83-
<a href="https://github.com/codellm-devkit/codeanalyzer-java"><img src="https://img.shields.io/badge/WALA-1.6.7-blue?style=for-the-badge" alt="WALA 1.6.7" /></a>
84-
<a href="https://discord.gg/zEjz9YrmqN"><img src="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord" /></a>
85-
</p>

src/styles/docs.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,22 @@ html {
208208
.sl-markdown-content pre.cldk-signature {
209209
white-space: pre-wrap;
210210
}
211+
/* ---- In-content status/tier badges: subtle pastel pills, not loud blocks -- */
212+
.sl-markdown-content .sl-badge {
213+
font-family: var(--sl-font);
214+
font-size: 0.75rem;
215+
font-weight: 600;
216+
letter-spacing: 0.01em;
217+
border-radius: 999px;
218+
padding: 0.05rem 0.55rem;
219+
border-width: 1px;
220+
white-space: nowrap;
221+
background: transparent;
222+
}
223+
224+
.sl-markdown-content .sl-badge.success { color: #57b87e; border-color: rgba(36, 161, 72, 0.28); background: rgba(36, 161, 72, 0.08); }
225+
.sl-markdown-content .sl-badge.tip { color: #44b3b0; border-color: rgba(0, 157, 154, 0.28); background: rgba(0, 157, 154, 0.08); }
226+
.sl-markdown-content .sl-badge.caution { color: #cba43a; border-color: rgba(178, 134, 0, 0.28); background: rgba(178, 134, 0, 0.09); }
227+
.sl-markdown-content .sl-badge.note { color: #5b8def; border-color: rgba(15, 98, 254, 0.28); background: rgba(15, 98, 254, 0.08); }
228+
.sl-markdown-content .sl-badge.default { color: #9a9a9a; border-color: rgba(111, 111, 111, 0.28); background: rgba(111, 111, 111, 0.08); }
229+
.sl-markdown-content .sl-badge.danger { color: #e8737a; border-color: rgba(218, 30, 40, 0.28); background: rgba(218, 30, 40, 0.08); }

0 commit comments

Comments
 (0)