Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export default defineConfig({
label: 'CLI Reference',
slug: 'cli-reference'
}]
},{
label: 'Blog',
autogenerate: {
directory: 'blog'
}
}, {
label: 'PathFinder Queries',
autogenerate: {
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/docs/blog/codeql-oss-alternative.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Code PathFinder - Open Source CodeQL Alternative
description: "A short blog post about Code PathFinder, a CodeQL OSS alternative"
template: splash
author: "Shivasurya"
pubDate: "2024-10-01"
---

import PostHogLayout from '../../../layouts/PostHogLayout.astro';
Expand Down
43 changes: 43 additions & 0 deletions docs/src/content/docs/blog/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: Code PathFinder Blog
template: splash
hero:
tagline: "A listing of all blog posts about Code PathFinder"
actions:
- text: Install Now
link: /quickstart
icon: right-arrow
variant: primary
- text: Documentation
link: /overview
icon: open-book
- text: Get Source
link: https://github.com/shivasurya/code-pathfinder
icon: github
---

import PostHogLayout from '../../../layouts/PostHogLayout.astro';
import { getCollection } from 'astro:content';

export const allPosts = await getCollection('docs', ({ id, data }) => {
// filter out index.mdx from the list of posts
if (id.startsWith('blog/index.mdx')) {
return false;
}
return id.startsWith('blog/');
});

<PostHogLayout />
<div style="margin: 2rem auto; padding: 0 1.5rem; max-width: 800px;">


{allPosts.map((post) => (
<ul style="list-style-type: none;">
<li> <h3><a href={`/${post.slug}`} style="text-decoration:none">{post.data.title}</a></h3></li>
{post.data.description}
<p style="font-size: 0.8rem;">written by <a href="https://shivasurya.me">Shivasurya</a></p>
<hr />
</ul>
))}

</div>