Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Website #12127

Closed
wants to merge 160 commits into from
Closed
Show file tree
Hide file tree
Changes from 101 commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
8454dcd
Initial commit from Astro
astrobot-houston Nov 16, 2024
0131dd2
feat: setup helix color themes
nik-rev Nov 16, 2024
cdb9ab2
feat: update landing page
nik-rev Nov 16, 2024
f8a7d46
feat: add Installation page
nik-rev Nov 16, 2024
bebdfd1
feat: add building from source instructions
nik-rev Nov 16, 2024
be6f5b7
feat: add custom theme
nik-rev Nov 16, 2024
6e6d733
feat: add custom theme
nik-rev Nov 17, 2024
6094fad
feat: add custom helix theme
nik-rev Nov 17, 2024
b28ee25
feat: update to use newest theme
nik-rev Nov 17, 2024
f2e15f5
feat: use brand colors for admonitions
nik-rev Nov 17, 2024
68dd06c
feat: make admonition styles more monochrome
nik-rev Nov 17, 2024
bb68bf6
feat: add empty pages to be filled later
nik-rev Nov 17, 2024
f9860eb
feat: write content for Introduction
nik-rev Nov 17, 2024
4eb8402
feat: sensible order for Getting Started section
nik-rev Nov 17, 2024
e3e8c4e
feat: add instructions on using gnome terminal
nik-rev Nov 18, 2024
c6c3534
feat: add better instructions for Basics
nik-rev Nov 18, 2024
5c2e285
feat: add all theme.astro files
nik-rev Nov 18, 2024
1618e4b
feat: improve themes reference section
nik-rev Nov 18, 2024
8dcd711
feat: add custom theme docs information
nik-rev Nov 18, 2024
8242e3f
feat: add terminal-support.mdx
nik-rev Nov 18, 2024
ab63b32
feat: add faq.mdx
nik-rev Nov 18, 2024
dd69398
feat: add troubleshooting.mdx
nik-rev Nov 18, 2024
feb65be
feat: add from-vim.mdx
nik-rev Nov 18, 2024
5cae39b
feat: add debuggers.mdx
nik-rev Nov 18, 2024
0cf49d1
feat: add languages.mdx
nik-rev Nov 18, 2024
423564f
feat: add Contributing section
nik-rev Nov 18, 2024
390462a
feat: add information on why i made this site in the README
nik-rev Nov 18, 2024
b420418
docs: add info about visualizations
nik-rev Nov 18, 2024
2fef36b
docs: add note that this is a work in progress
nik-rev Nov 18, 2024
ec0c04e
feat: add Asciinema support
nik-rev Nov 19, 2024
e414a95
feat: add overview mdx document
nik-rev Nov 22, 2024
9322607
feat: add section on surrounds
nik-rev Nov 22, 2024
873f8b8
feat: simplify wording around surrounds
nik-rev Nov 22, 2024
c12756b
feat: add textobject info about word, WORD and surrounds
nik-rev Nov 22, 2024
f3a7638
feat: finalize text-manipulation document
nik-rev Nov 22, 2024
463b13f
feat: add keymaps reference section
nik-rev Nov 22, 2024
85f8dc9
feat: add commands and formatters page
nik-rev Nov 22, 2024
ac9c0c5
feat: use a theme which better matches helix color theme
nik-rev Nov 22, 2024
6dbbe40
feat: transform faq, keymap and debuggers pages for consistency
nik-rev Nov 22, 2024
f4cf395
feat: add architecture.mdx and releases.mdx
nik-rev Nov 22, 2024
cc5716c
feat: update title
nik-rev Nov 22, 2024
1695577
feat: add vision.mdx
nik-rev Nov 22, 2024
c96dad7
feat: add open collective link
nik-rev Nov 22, 2024
f0be289
feat: add components for Master and Latest version
nik-rev Nov 22, 2024
193fa0c
feat: prettier editor config option reference page
nik-rev Nov 22, 2024
201240a
feat: complete languages.md usage document
nik-rev Nov 22, 2024
bccc12b
feat: add recipes document
nik-rev Nov 22, 2024
caf3185
feat: update languages.mdx with links to references
nik-rev Nov 22, 2024
cdddfc6
feat: add a very comprehensive tutorial for using macros and multiple…
nik-rev Nov 23, 2024
00bc332
feat: rewrite multiple cursors section
nik-rev Nov 23, 2024
bab3376
feat: clean up by removing unused mdx files
nik-rev Nov 23, 2024
991c747
feat: add instructions for adding language server support for astro
nik-rev Nov 23, 2024
7b057de
feat: update multiple cursors and macros document
nik-rev Nov 23, 2024
53773c5
feat: improve wording in language support document
nik-rev Nov 23, 2024
b604b4c
feat: add better explanations to Picker docs
nik-rev Nov 23, 2024
56a4118
feat: human formatting for typed command docs
nik-rev Nov 23, 2024
fe9d679
feat: fix broken links
nik-rev Nov 23, 2024
e6629da
feat: add registers document
nik-rev Nov 23, 2024
a3cc55d
feat: remove link-validator
nik-rev Nov 23, 2024
0b3c637
feat: add termshots for multiple-cursors
nik-rev Nov 24, 2024
3451eb2
feat: add display termshots for javascript example object -> array
nik-rev Nov 24, 2024
cf6ce12
feat: create termshots for textobjects
nik-rev Nov 24, 2024
f35159e
feat: add termshots for surround.mdx
nik-rev Nov 24, 2024
15e9171
feat: add termshots for pickers
nik-rev Nov 24, 2024
d197144
feat: call to action to send PR if they figure it out
nik-rev Nov 24, 2024
8019c48
feat: update styling for Master component
nik-rev Nov 24, 2024
d773ed3
feat: add key-remapping docs
nik-rev Nov 24, 2024
b95d406
feat: create sub-section Configuration
nik-rev Nov 24, 2024
360d4a5
fix: broken links
nik-rev Nov 24, 2024
ae6eeab
feat: add support for News section
nik-rev Nov 24, 2024
6ced208
feat: custom asciinema theme
nik-rev Nov 24, 2024
0419207
feat: add background decoration hexagons
nik-rev Nov 24, 2024
8258b40
feat: add background pattern to hero secton
nik-rev Nov 25, 2024
b0b25c8
feat: add second get started button
nik-rev Nov 25, 2024
2a83b74
feat: move all termshots to dedicated folder
nik-rev Nov 25, 2024
fd004b4
feat: add doc page explaining this site
nik-rev Nov 25, 2024
b7c4003
feat: migrate away from tailwind
nik-rev Nov 25, 2024
1fe916d
feat: add instructions on how to use site
nik-rev Nov 25, 2024
4157b77
feat: update README with new instructions and map of Old -> New docs
nik-rev Nov 25, 2024
79939bb
fix: rename duplicated filenames
nik-rev Nov 25, 2024
945eff5
fix: termshots script searched in wrong directory
nik-rev Nov 25, 2024
84e0d08
feat: add sitemap plugin
nik-rev Nov 25, 2024
a2b9d2e
feat: add sitemap
nik-rev Nov 25, 2024
6bde18e
feat: add sitemap to every <head> on website
nik-rev Nov 25, 2024
41075e2
feat: move every file into a subdirectory
nik-rev Nov 25, 2024
1c4ad5b
Merge remote-tracking branch 'new-website/main' into new-website
nik-rev Nov 25, 2024
a4b0459
feat: update url
nik-rev Nov 25, 2024
8ceca02
fix: correct url for view source
nik-rev Nov 25, 2024
ee1dc29
feat: add github action to deploy project
nik-rev Nov 25, 2024
42f115e
build: trigger deployment
nik-rev Nov 25, 2024
2035a16
fix: move deployment script to root directory
nik-rev Nov 25, 2024
5d28b00
fix: specify pnpm package manager
nik-rev Nov 25, 2024
8d61450
fix: specify latest pnpm version
nik-rev Nov 25, 2024
47d528a
fix: typo
nik-rev Nov 25, 2024
dc8b3a3
feat: exclude contributing pages from pagefind
nik-rev Nov 26, 2024
d73de68
feat: add autolink hover indicator
nik-rev Nov 26, 2024
c387284
feat: add indicator for external links
nik-rev Nov 26, 2024
543f205
feat: add opengraph image support
nik-rev Nov 26, 2024
db6a9dd
feat: add description frontmatter to each page for SEO
nik-rev Nov 26, 2024
5989dfb
fix: spelling mistake
nik-rev Nov 26, 2024
f8ab359
fix: spelling mistake
nik-rev Nov 26, 2024
92b0cd5
fix: do not force description
nik-rev Nov 26, 2024
dbae7f1
feat: specify that clipboard provider is for Linux
nik-rev Nov 26, 2024
c31b764
fix: cut description in each post to under 100 chars
nik-rev Nov 26, 2024
67e1906
feat: improve wording
nik-rev Nov 26, 2024
3386a45
feat: add starlight-image-zoom for accessibility on mobile devices
nik-rev Nov 26, 2024
69554f8
feat: use master branch for github pages deployment
nik-rev Nov 26, 2024
48f274e
fix: correct "Edit this page" URL
nik-rev Nov 26, 2024
f741d23
fix: broken link used localhost
nik-rev Nov 26, 2024
93ccb25
feat: show "News" link in documentation
nik-rev Nov 26, 2024
b8e23fc
feat: make installation commands directly copy-pasteable into terminal
nik-rev Nov 26, 2024
ab9707d
feat: use steps component for pre-built binaries
nik-rev Nov 26, 2024
04b01ad
feat: add healthcheck section to troubleshooting
nik-rev Nov 26, 2024
91c98d9
feat: improve installation page
nik-rev Nov 26, 2024
078b71d
feat: move note to building from source section
nik-rev Nov 26, 2024
c4724c2
feat: format arrow keys into a bulleted list
nik-rev Nov 26, 2024
f84f2f0
feat: add recipe to remap caps lock to escape
nik-rev Nov 26, 2024
7a408c7
feat: mention caps lock recipe in Basics section
nik-rev Nov 26, 2024
1985569
feat(basics): move Registers section later in the page
nik-rev Nov 26, 2024
b64b660
feat(multiple-cursors): improve document flow
nik-rev Nov 26, 2024
93ea125
feat: split up Multpile Cursors and Macros and rename Usage section
nik-rev Nov 26, 2024
d144c3c
feat: rename Getting Started to Start Here
nik-rev Nov 26, 2024
f36d58b
feat: rename Guides back to Usage
nik-rev Nov 26, 2024
fc5fc70
feat: add updates from GyuKlaassen code review
nik-rev Nov 26, 2024
134e7b2
feat: display up to level 5 headings on the table of contents
nik-rev Nov 26, 2024
3fd50b2
feat: reword congratulation statement
nik-rev Nov 26, 2024
d38b520
feat: improve formatting for text objects section
nik-rev Nov 26, 2024
f4171ba
feat: add next step section to text objects
nik-rev Nov 26, 2024
dc5f267
feat: improve usage/language support docs with concrete examples
nik-rev Nov 26, 2024
be35cc8
feat: overhaul picker page
nik-rev Nov 26, 2024
fc5ba05
fix: broken links
nik-rev Nov 26, 2024
9716279
fix: use h3 headings separately from the ConfigOption component
nik-rev Nov 26, 2024
f97a570
feat: add recipe to map Ctrl + Z
nik-rev Nov 26, 2024
86b1e00
feat: improve surround docs
nik-rev Nov 26, 2024
4f1df44
feat: add doc on buffers
nik-rev Nov 26, 2024
12c4b0a
feat: add additional information on how to use --vimgrep with buffers
nik-rev Nov 26, 2024
bb1cbfc
fix: dozens of spelling errors
nik-rev Nov 26, 2024
b8b6d9f
feat: add new plugin information to this-site
nik-rev Nov 26, 2024
69fe424
feat: add instructions for this specific pull request
nik-rev Nov 26, 2024
282eacf
fix: second get started link not working
nik-rev Nov 26, 2024
9208f44
fix: reduce layout shift by specifying a height for the logo
nik-rev Nov 26, 2024
e3dcdb5
fix: spacing for second call to action button
nik-rev Nov 26, 2024
fec2547
feat: improve landing page design
nik-rev Nov 27, 2024
e186f7d
feat: change icon for landing page item
nik-rev Nov 27, 2024
979b3d0
feat: add free and privacy focused Cloudflare web analytics
nik-rev Nov 27, 2024
efddf5e
fix: spelling
nik-rev Nov 27, 2024
6788c48
feat: use js comment instead of html in ThemeProvider
nik-rev Nov 27, 2024
cca5297
feat: add alt text to logo
nik-rev Nov 27, 2024
5bac178
feat: remove hero image
nik-rev Nov 27, 2024
4278bc4
feat: update xmodmap mention to keyd
nik-rev Nov 27, 2024
2e7e532
feat: basic implementation for theme
nik-rev Nov 27, 2024
2ac320d
feat: progress on theme generator
nik-rev Nov 27, 2024
b832a64
feat: complete syntax highlighting for generated themes
nik-rev Nov 27, 2024
a97d2fd
feat: use accessible aria-label
nik-rev Nov 27, 2024
726fd49
feat: create utility function to begin abstracting away the termshots
nik-rev Nov 27, 2024
c458004
refactor: line 1 and 2 of the theme script
nik-rev Nov 27, 2024
68ebb79
feat: complete refactoring of custom solution for theme generation
nik-rev Nov 28, 2024
7a7651d
feat: basic implementation for showcasing every single theme
nik-rev Nov 28, 2024
3aa3940
fix: add script to package.json
nik-rev Nov 28, 2024
a76bc35
fix: spelling issues from GyuKlaassen's review
nik-rev Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ new-website ]
# To run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v3
with:
path: website

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
23 changes: 23 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.cache

# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
12 changes: 12 additions & 0 deletions website/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
9 changes: 9 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Helix Docs

[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)

The helix documentation.
nik-rev marked this conversation as resolved.
Show resolved Hide resolved

[Contributing instructions](https://helix-editor.vercel.app/contributing/this-site).

The new website is available at [helix-editor.vercel.app](https://helix-editor.vercel.app).
134 changes: 134 additions & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import starlightBlog from "starlight-blog";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeExternalLinks from "rehype-external-links";

import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
site: "https://helix-editor.vercel.app",
vite: {
optimizeDeps: { include: ["asciinema-player"] },
},
markdown: {
rehypePlugins: [
rehypeHeadingIds,

[
rehypeExternalLinks,
{
content: {
type: "text",
value: " ↗",
},
properties: {
target: "_blank",
},
rel: ["noopener"],
},
],
[rehypeAutolinkHeadings, { behavior: "wrap" }],
],
},
integrations: [
starlight({
head: [
{
tag: "link",
attrs: {
rel: "sitemap",
href: "/sitemap-index.xml",
},
},
],
plugins: [
starlightLinksValidator(),
starlightBlog({ title: "News", prefix: "news" }),
],
title: "Helix",
logo: {
src: "./public/favicon.svg",
},
social: {
github: "https://github.com/helix-editor/helix",
matrix: "https://matrix.to/#/#helix-community:matrix.org",
},
components: {
ThemeProvider: "./src/components/ThemeProvider.astro",
ThemeSelect: "./src/components/ThemeSelect.astro",
Head: "./src/components/Head.astro",
},
editLink: {
baseUrl: "https://github.com/helix-editor/helix/edit/main/website/",
},
sidebar: [
{
label: "Getting Started",
items: ["getting-started/installation", "getting-started/basics"],
},
{
label: "Usage",
items: [
"usage/multiple-cursors",
"usage/text-objects",
"usage/surround",
"usage/language-support",
"usage/pickers",
"usage/registers",
],
},
{
label: "Configuration",
items: [
"configuration/editor",
"configuration/languages",
"configuration/remapping",
],
},
{
label: "Reference",
items: [
"reference/keymap",
"reference/typed-commands",
"reference/list-of-themes",
"reference/custom-themes",
"reference/language-servers",
"reference/formatters",
"reference/debuggers",
],
},
{
label: "Help",
items: [
"help/recipes",
"help/faq",
"help/troubleshooting",
"help/terminal-support",
"help/language-defaults",
"help/refactor-examples",
],
},
{
label: "Contributing to Helix",
items: [
"contributing/vision",
"contributing/this-site",
"contributing/releases",
"contributing/architecture",
"contributing/languages",
"contributing/textobject-queries",
"contributing/indent-queries",
"contributing/injection-queries",
],
},
],
customCss: ["./src/globals.css"],
}),
sitemap(),
],
});
1 change: 1 addition & 0 deletions website/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "helix-docs",
"type": "module",
"packageManager": "pnpm@latest",
"version": "1.0.0",
"scripts": {
"termshots": "node scripts/termshots.js",
"predev": "pnpm termshots",
"prebuild": "pnpm termshots",
"prepreview": "pnpm termshots",
"dev": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/markdown-remark": "^5.3.0",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/starlight": "^0.29.2",
"asciinema-player": "^3.8.1",
"astro": "^4.16.10",
"astro-og-canvas": "^0.5.4",
"canvaskit-wasm": "^0.39.1",
"rehype-autolink-headings": "^7.1.0",
"rehype-external-links": "^3.0.0",
"sharp": "^0.32.5",
"starlight-blog": "^0.15.0",
"starlight-contributor-list": "^0.1.0",
"starlight-links-validator": "^0.13.2",
"typescript": "^5.6.3"
}
}
Loading