Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
archywillhe committed Aug 27, 2024
1 parent 136c3f8 commit 8389379
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 28 deletions.
4 changes: 3 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import starlightThemeRapide from 'starlight-theme-rapide'



// https://astro.build/config
Expand All @@ -10,6 +11,7 @@ export default defineConfig({
integrations: [
starlight({
title: 'My Docs',
plugins: [starlightThemeRapide()],
social: {
github: 'https://github.com/withastro/starlight',
},
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@expressive-code/plugin-line-numbers": "^0.35.6",
"astro": "^4.10.2",
"sharp": "^0.32.5",
"starlight-theme-rapide": "^0.1.1",
"typescript": "^5.5.4"
}
}
12 changes: 12 additions & 0 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/src/assets/fish.webp
Binary file not shown.
Binary file removed docs/src/assets/houston.webp
Binary file not shown.
4 changes: 3 additions & 1 deletion docs/src/components/Example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Code } from '@astrojs/starlight/components';

export const exampleCode = (`
...
// ><> WATCH constraint: docs/getting-started
// ><> constraints:
// WATCH docs/getting-started
// use fetch API
await fetch(\`http://localhost:3010/todos/$\{todo.id\}\`, {
method: \`PUT\`,
headers: {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ template: splash
hero:
tagline: Congrats on setting up a new Starlight project!
image:
file: ../../assets/houston.webp
file: ../../assets/fish.webp
actions:
- text: Example Guide
link: /guides/example/
Expand Down
59 changes: 34 additions & 25 deletions docs/src/pages/index.astro → docs/src/pages/hi.astro
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
---
import Example from "../components/Example.mdx"
import { Code } from '@astrojs/starlight/components';
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
---

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lo.fish: the meta-programming language for ArchGPT</title>
<title>lo.fish ><>: the meta-programming language for ArchGPT</title>
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" />
<style>
code {
Expand Down Expand Up @@ -37,6 +40,7 @@ import { Code } from '@astrojs/starlight/components';
</head>

<body class="home-page" style="font-family: 'Lato';">

<div class=" superContainer">


Expand All @@ -48,38 +52,41 @@ import { Code } from '@astrojs/starlight/components';

<div style="font-family: 'Courier New', Courier, monospace; text-align: left; margin-right:20px;">

lo.fish
<div
style="margin-top:10px;font-family: 'Courier New', Courier, monospace; font-size: 0.9em; margin-bottom: 20px;">
lo.fish {'><>'}
<div
style="margin-top:10px;font-family: 'Courier New', Courier, monospace; font-size: 0.9em; margin-bottom: 20px;">


</div>
<div
style="margin-top:10px;font-family: 'Courier New', Courier, monospace; font-size: 0.9em; margin-bottom: 20px;">
</div>
<div
style="margin-top:10px;font-family: 'Courier New', Courier, monospace; font-size: 0.9em; margin-bottom: 20px;">

</div>
</div>
</div>
<div>
lo.fish is a meta-programming language to create LLM-driven automated software development pipelines
lo.fish is a meta-programming language to create LLM-driven software development pipelines
with
ArchGPT.

<br /> <br />
You can use lo.fish to segment your code, and define constraints and rules for code generation to
You can use lo.fish to segment your code, and define constraints and rules for code generation
to
automatically take place
within your codebase.
<br /><br />

lo.fish comes with out-of-the-box supports for source code in Rust, JavaScript, Python, Java,
Kotlin, C#, SQL, JSX, HTML, and Markdown.
<br /><br />
<Example />
<br />
In the example above, everytime there is a change in <code>"docs/getting-started.md"</code>, the
In the example above, everytime there is a change in <code>docs/getting-started.md</code>, the
codeblock below <code>{'><>'}</code>will be
re-generated.
re-generated. If you edit the second constraints "use fetch API" to "use axios", the code will be re-generated and axios will be imported.

<blockquote style="font-size: 0.9em;">
You can also add a
<code>{'><> WATCH'}</code> block in the documentation in
<code>"docs/getting-started.md"</code> to trigger a rewriting when the code in your server is
<code>docs/getting-started.md</code> to trigger a rewriting when the code in your server is
changed, thus
creating a simple chain of code-automation. <br /><br /><a>Try out a full demo
with
Expand All @@ -89,29 +96,30 @@ import { Code } from '@astrojs/starlight/components';

<br />

Basically, lo.fish is constraint-based annotation language to create a LLM-driven code-generation
Basically, lo.fish is a constraint-based annotation language to create a LLM-driven
code-generation
layer on
top of your codebase. <br /><br />

<a>Read more about its syntax and runtime here.</a>

<br /><br />
The lo.fish interpreter is super lightweight (3kb). It does not contain any LLM-layer by itself and
The lo.fish interpreter is super lightweight (3kb) and does not contain any LLM-layer by itself.
It
is
written
in
Rust using Gluon and
Tree-sitter. It is designed to work seamlessly with ArchGPT (while you are also free to
Tree-sitter, and is designed to work seamlessly with ArchGPT (while you are also free to
<a>create your own lo.fish adaptor</a>).
<br /><br />
lo.fish comes with out-of-the-box supports for source code in Rust,
JavaScript, Python,
Java, Kotlin,
C#
and SQL.


</div>
<br /><br />
<CardGrid>
<LinkCard title="Authoring Markdown" href="/guides/authoring-content/" />
<LinkCard title="Components" href="/guides/components/" />
</CardGrid>
</div>
</div>
</div>
Expand All @@ -136,9 +144,10 @@ import { Code } from '@astrojs/starlight/components';



<div class="footer-desu">

<!-- © 2018-2020 Castella Pte. Ltd. Kovan Rd, Singapore.</div> -->
<!-- © 2018-2020 Castella Pte. Ltd. Kovan Rd, Singapore.</div> -->


</body>

</html>

0 comments on commit 8389379

Please sign in to comment.