Skip to content

Commit

Permalink
Sketch out new content
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 4, 2024
1 parent f2c9bcb commit b0cd2b4
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ export default defineConfig({
},
{ text: "Tags", link: "/handbook/tags" },
{ text: "Layouts", link: "/handbook/layouts" },
{ text: "Helpers", link: "/handbook/helpers" },
{ text: "Testing", link: "/handbook/testing" },
],
},

{
text: "Guides",
collapsed: false,
collapsed: true,
items: [{ text: "Upgrading to v2", link: "/guides/v2-upgrade" }],
},

{
text: "Reference",
link: "/reference/",
collapsed: false,
collapsed: true,
items: [
{ text: "SGML", link: "/reference/sgml" },
{ text: "HTML", link: "/reference/html" },
Expand All @@ -65,6 +67,18 @@ export default defineConfig({
],
},

{
text: "Compared to…",
collapsed: true,
items: [
{ text: "ViewComponent", link: "/compare/view-component" },
{ text: "ActionView & ERB", link: "/compare/action-view" },
{ text: "React", link: "/compare/react" },
{ text: "Slim", link: "/compare/slim" },
{ text: "Haml", link: "/compare/haml" },
],
},

{
text: "Technical Design",
collapsed: true,
Expand All @@ -88,8 +102,11 @@ export default defineConfig({
{ icon: "github", link: "https://github.com/phlex-ruby" },
{ icon: "discord", link: "https://discord.gg/p7C9SWS8Sa" },
],

footer: {
message: "Released under the MIT License.",
copyright:
'Made by <a href="https://github.com/joeldrapper">Joel Drapper</a>, <a href="https://github.com/willcosgrove">Will Cosgrove</a> and dozens of other <a href="https://github.com/phlex-ruby/phlex/graphs/contributors">contributors</a>.',
},
},
});
1 change: 1 addition & 0 deletions compare/action-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Phlex vs ActionView & ERB
1 change: 1 addition & 0 deletions compare/haml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Phlex vs Haml
1 change: 1 addition & 0 deletions compare/react.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Phlex vs React
1 change: 1 addition & 0 deletions compare/slim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Phlex vs Slim
1 change: 1 addition & 0 deletions compare/view-component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Phlex vs ViewComponent
6 changes: 6 additions & 0 deletions handbook/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---

prev: false

---

# Intro

Phlex is a Ruby gem for building fast object-oriented views. Phlex actually supports **HTML**, **SVG** and **CSV** views, but we'll focus on HTML views to begin with.
Expand Down

0 comments on commit b0cd2b4

Please sign in to comment.