Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

New 2024 Docs #255

Merged
merged 36 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3039e82
First stab at initial docs. Bad frontpage.
reynoldsalec Jan 25, 2024
dadb917
fix linting, testing, removing dangling yarn threads
pirog Jan 29, 2024
499f4cf
add separate linter and name things better
pirog Jan 29, 2024
6780707
devops things
pirog Jan 31, 2024
00f7121
update theme
pirog Jan 31, 2024
9d492a7
home page redo 2
pirog Feb 6, 2024
3ebace6
rework install docz
pirog Feb 8, 2024
8113d45
lando101 and tutorials rework
pirog Feb 8, 2024
1dbb433
prebuild
pirog Feb 8, 2024
5d4b7cb
lets see where we at
pirog Feb 8, 2024
dbf13f5
update deploy dist dir
pirog Feb 8, 2024
715fcfc
update to latest vitepress
pirog Feb 8, 2024
fc9363a
Checklinks.
reynoldsalec Feb 8, 2024
700b4a1
Checklinks
reynoldsalec Feb 8, 2024
0e2a175
manually set editLink
pirog Feb 8, 2024
814d7cb
Checklinks.
reynoldsalec Feb 8, 2024
620798c
Merge branch 'new-docs' of github.com:lando/docs into new-docs
reynoldsalec Feb 8, 2024
73a760a
SKIPS
pirog Feb 8, 2024
a728c07
Merge branch 'new-docs' of github.com:lando/docs into new-docs
pirog Feb 8, 2024
619d01b
Checklinks.
reynoldsalec Feb 8, 2024
2f31d8b
Merge branch 'new-docs' of github.com:lando/docs into new-docs
reynoldsalec Feb 8, 2024
686f0c0
Checklinks.
reynoldsalec Feb 8, 2024
7da9bbe
more chexlinx
pirog Feb 8, 2024
3f8f4ba
Checklinks.
reynoldsalec Feb 8, 2024
5a4bc17
more chexlinx
pirog Feb 8, 2024
8b93273
Merge branch 'new-docs' of github.com:lando/docs into new-docs
pirog Feb 8, 2024
f62b3c6
stringz
pirog Feb 8, 2024
2cd712e
chexlinx2
pirog Feb 8, 2024
2a48177
Checklinks.
reynoldsalec Feb 8, 2024
fe655ec
Checklinks.
reynoldsalec Feb 8, 2024
fc0d19d
chexlinx3
pirog Feb 8, 2024
fb5172b
Merge branch 'new-docs' of github.com:lando/docs into new-docs
pirog Feb 8, 2024
4ddb645
chexlinx4
pirog Feb 8, 2024
1f20823
chexlinx5
pirog Feb 8, 2024
7b85916
chexlinx6
pirog Feb 8, 2024
6a8709c
chexlinx7
pirog Feb 8, 2024
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
9 changes: 3 additions & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.temp
.cache
temp
cache
dist
_site

.vuepress/dist
.vuepress/.cache
.vuepress/.temp
!.vitepress
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"FunctionDeclaration": false,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false,
Expand Down
26 changes: 11 additions & 15 deletions .github/workflows/pr-docs-tests.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
name: Documentation tests
name: Run Docs Tests

on:
pull_request:

jobs:
docs-tests:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- '16'
- '18'
steps:
# Install deps and cache
# Eventually it would be great if these steps could live in a separate YAML file
# that could be included in line to avoid code duplication
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile

# Run doc tests
- name: Lint docs code
run: yarn lint
- name: Build Docs
run: yarn build
# Run tests
- name: Run linter
run: npm run lint
- name: Test build
run: npm run build
29 changes: 29 additions & 0 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint Code

on:
pull_request:

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
node-version:
- '18'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile

# Run the linter
- name: Run code linter
run: npm run lint
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bump Version

on:
release:
types:
- published

jobs:
deploy:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
os:
- ubuntu-22.04
node-version:
- '18'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile

# Let's do tests rq just to make sure we dont push something that is fundamentally broken
- name: Lint code
run: npm run lint
- name: Run unit tests
run: npm run test:unit

# Prepare release.
- name: Prepare release
uses: lando/prepare-release-action@v3
15 changes: 8 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ env.yml
lando.env
.lando.local.yml

# Build dirs
build
dist
_docs3

# coverage reporting
.nyc_output
coverage/

# Vuepress
# docs
.temp
.cache
dist
_site
dist
cache
temp
config.*.timestamp-*-*.*

# YARN
yarn.lock
12 changes: 4 additions & 8 deletions .lando.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: lando-docs
services:
node:
type: node:14
type: node:18
build:
- yarn install
- npm install
scanner: false
ssl: false
sslExpose: false
Expand All @@ -13,10 +13,6 @@ services:
tooling:
node:
service: node
yarn:
npm:
service: node
dev:
service: node
cmd: yarn dev --port 8011
env:
DEBUG: "@lando/*"

2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.github
.nyc_output
coverage
docs
examples
guides
Expand Down
137 changes: 137 additions & 0 deletions .vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
import {defineConfig} from '@lando/vitepress-theme-default-plus/config';

const hat = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5" /></svg>';

export default defineConfig({
title: 'Lando',
description: 'Documentation',
landoDocs: 3,
head: [
['meta', {name: 'viewport', content: 'width=device-width, initial-scale=1'}],
['link', {rel: 'icon', href: '/favicon.ico', size: 'any'}],
['link', {rel: 'icon', href: '/favicon.svg', type: 'image/svg+xml'}],
],
themeConfig: {
editLink: {
pattern: 'https://github.com/lando/docs/edit/main/:path',
},
collections: {
guide: {
frontmatter: {
collection: 'guide',
},
icon: hat,
iconLink: '/guides',
patterns: ['guides/**/*.md', 'getting-started/updating.md', 'getting-started/uninstalling.md'],
},
lando101: {
frontmatter: {
collection: 'lando101',
},
icon: hat,
iconLink: '/lando-101',
patterns: ['lando-101/**/*.md'],
},
post: {
frontmatter: {
collection: 'post',
contributors: false,
backLink: {
text: '<- Back to blog',
link: '/blog',
},
aside: false,
sidebar: false,
prev: false,
next: false,
editLink: false,
},
icon: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"/></svg>',
iconLink: '/blog',
patterns: ['blog/**/*.md'],
},
troubleshooting: {
frontmatter: {
collection: 'troubleshooting',
},
icon: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z" /></svg>',
iconLink: '/troubleshooting',
patterns: ['help/**/*.md', 'troubleshooting/**/*.md'],
},
},
sidebar: {
'/': [
{
text: 'Introduction',
collapsed: false,
items: [
{text: 'What it do?', link: '/getting-started/'},
{text: 'How does it work?', link: '/getting-started/what-it-do'},
{text: 'Starting your first app', link: '/getting-started/first-app'},
{text: 'Requirements', link: '/getting-started/requirements'},
],
},
{
text: 'Installation',
collapsed: false,
items: [
{text: 'macOS', link: '/install/macos'},
{text: 'Linux', link: '/install/linux'},
{text: 'Windows', link: '/install/windows'},
{text: 'GitHub Actions', link: '/install/gha'},
{text: 'Source', link: '/install/source'},
],
},
{
text: 'Help & Support',
collapsed: false,
items: [
{text: 'GitHub', link: 'https://github.com/lando/dotnet/issues/new/choose'},
{text: 'Slack', link: 'https://www.launchpass.com/devwithlando'},
{text: 'Contact Us', link: '/support'},
{text: 'Troubleshooting', link: '/troubleshooting'},
],
},
{
text: 'Contributing',
collapsed: true,
items: [
{text: 'Getting Involved', link: '/contrib/index'},
{text: 'Coding', link: '/contrib/coder'},
{text: 'Evangelizing', link: '/contrib/evangelist'},
{text: 'Sponsoring', link: '/contrib/sponsoring'},
{text: 'Security', link: '/security'},
{text: 'Team', link: '/team'},
],
},
{
collapsed: false,
items: [
{
text: 'Lando 101',
link: '/lando-101',
},
{
text: 'Guides',
link: '/guides',
},
{
text: 'Examples',
link: 'https://github.com/lando/core/tree/main/examples',
},
],
},
{
collapsed: false,
items: [
{
text: 'Plugins',
link: '/plugins',
},
],
},

],
},
},
});
3 changes: 3 additions & 0 deletions .vitepress/theme/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import VPLTheme from '@lando/vitepress-theme-default-plus';

export default VPLTheme;
Loading
Loading