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

Chore/next 15 upgrade #267

Open
wants to merge 34 commits into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
07c97fe
chore: add next 15 support
avitorio Nov 9, 2024
bcf20d7
chore: upgrade docs to next 15
avitorio Nov 9, 2024
8886909
chore: update dev to next 15
avitorio Nov 9, 2024
7b1e147
chore: update advanced-blog to next 15
avitorio Nov 9, 2024
33b38bc
feat: upgrade basic-blog to next 15
avitorio Nov 9, 2024
c3f3505
chore: upgrade outstatic to next 15
avitorio Nov 9, 2024
4f7b927
fix: basic-blog errors
avitorio Nov 10, 2024
fbf3663
chore: upgrade advanced example to 1.5.0
avitorio Nov 10, 2024
93c62eb
feat: adjust next 15 on outstatic
avitorio Nov 10, 2024
af1c0b5
chore: upgrade docs-example to nextjs 15
avitorio Nov 10, 2024
2078144
chore: Updates/Creates upgrading-to-v1.5
avitorio Nov 11, 2024
f6896a9
chore: Updates collections
avitorio Nov 11, 2024
f3546e6
chore: Updates collections
avitorio Nov 11, 2024
243cd0e
chore: Updates/Creates test-post
avitorio Nov 11, 2024
e912bb6
chore: Updates config
avitorio Nov 11, 2024
0fdd3b7
chore: Updates media.json
avitorio Nov 11, 2024
f87366d
feat: upgrade tiptap and fix errors
avitorio Nov 11, 2024
1b16419
Merge branch 'chore/next-15-upgrade' of github.com:avitorio/outstatic…
avitorio Nov 11, 2024
53b23a7
fix: refresh issues
avitorio Nov 12, 2024
842c2d0
fix: remove turbopack on dev
avitorio Nov 20, 2024
bb65909
feat: remove breaking link from test post
avitorio Nov 25, 2024
e81ff20
feat: adjust onboarding when .env vars are present
avitorio Nov 25, 2024
ce24467
chore: update packages and fix type errors
avitorio Nov 26, 2024
d1bbba0
test: fix tests
avitorio Nov 26, 2024
5cc380e
chore: Updates collections
avitorio Nov 26, 2024
894be5e
chore: Updates collections
avitorio Nov 26, 2024
f5f25e5
feat(posts): add description field
avitorio Nov 26, 2024
233ba1a
feat(posts): add coverImage field
avitorio Nov 26, 2024
34b0c7f
chore: Updates/Creates welcome-to-outstatic
avitorio Nov 26, 2024
bc96142
chore: Updates metadata DB
avitorio Nov 26, 2024
83fdab8
chore: Updates collections
avitorio Nov 26, 2024
780853c
chore: Updates collections
avitorio Nov 26, 2024
5c08854
feat: update login page to use basePath
avitorio Nov 28, 2024
373a20c
fix: basePath check
avitorio Dec 7, 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
5 changes: 5 additions & 0 deletions .changeset/long-scissors-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'outstatic': patch
---

feat: adjust onboarding when .env vars are present
2 changes: 1 addition & 1 deletion apps/dev/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
4 changes: 4 additions & 0 deletions apps/dev/outstatic/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"publicMediaPath": "images/",
"repoMediaPath": "apps/dev/public/images/"
}
20 changes: 20 additions & 0 deletions apps/dev/outstatic/content/collections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"title": "Pages",
"slug": "pages",
"path": "apps/dev/outstatic/content/pages",
"children": []
},
{
"title": "Posts",
"slug": "posts",
"path": "apps/dev/outstatic/content/posts",
"children": []
},
{
"title": "Projects",
"slug": "projects",
"path": "apps/dev/outstatic/content/projects",
"children": []
}
]
22 changes: 20 additions & 2 deletions apps/dev/outstatic/content/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commit": "5f6a88320da27c4d284996d498842939ad1d8d19",
"generated": "Sun, 11 Feb 2024 21:48:22 GMT",
"commit": "d164819e9dad435410707d379bdda074f40eda64",
"generated": "2024-11-11T14:42:41.780Z",
"metadata": [
{
"__outstatic": {
Expand Down Expand Up @@ -179,6 +179,24 @@
}
],
"title": "Far Out - The Next Steps for Outstatic "
},
{
"__outstatic": {
"commit": "d164819e9dad435410707d379bdda074f40eda64",
"hash": "3686094754",
"path": "/outstatic/content/posts/test-post.mdx"
},
"author": {
"name": "Andre Vitorio",
"picture": "https://avatars.githubusercontent.com/u/1417109?v=4"
},
"collection": "posts",
"publishedAt": "2024-11-11T14:22:52.515Z",
"slug": "test-post",
"status": "draft",
"tags": [
],
"title": "Test Post"
}
]
}
235 changes: 235 additions & 0 deletions apps/dev/outstatic/content/posts/test-post.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
---
title: 'Test Post'
publishedAt: '2024-11-11T14:22:52.515Z'
status: 'draft'
author:
name: 'Andre Vitorio'
picture: 'https://avatars.githubusercontent.com/u/1417109?v=4'
slug: 'test-post'
---

---

# h1 Heading 8-)

## h2 Heading

### h3 Heading

#### h4 Heading

##### h5 Heading

###### h6 Heading

## Horizontal Rules

---

---

---

## Typographic replacements

Enable typographer option to see result.

(c) (C) (r) (R) (tm) (TM) (p) (P) +-

test.. test... test..... test?..... test!....

!!!!!! ???? ,, -- ---

"Smartypants, double quotes" and 'single quotes'

## Emphasis

**This is bold text**

**This is bold text**

_This is italic text_

_This is italic text_

~~Strikethrough~~

## Blockquotes

> Blockquotes can also be nested...
>
> > ...by using additional greater-than signs right next to each other...
> >
> > > ...or with spaces between arrows.

## Lists

Unordered

- Create a list by starting a line with `+`, `-`, or `*`
- Sub-lists are made by indenting 2 spaces:

- Marker character change forces new list start:

- Ac tristique libero volutpat at

- Facilisis in pretium nisl aliquet

- Nulla volutpat aliquam velit

- Very easy!

Ordered

1. Lorem ipsum dolor sit amet

2. Consectetur adipiscing elit

3. Integer molestie lorem at massa

4. You can use sequential numbers...

5. ...or keep all the numbers as `1.`

Start numbering with offset:

1. foo
2. bar

## Code

Inline `code`

Indented code

```
// Some comments
line 1 of code
line 2 of code
line 3 of code
```

Block code "fences"

```
Sample text here...
```

Syntax highlighting

```js
var foo = function (bar) {
return bar++
}

console.log(foo(5))
```

## Tables

| Option | Description |
| ------ | ------------------------------------------------------------------------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |

Right aligned columns

| Option | Description |
| ------ | ------------------------------------------------------------------------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |

## Links

[link text](http://dev.nodeca.com)

[link with title](http://nodeca.github.io/pica/demo/)

## Images

![Minion](https://octodex.github.com/images/minion.png) ![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg 'The Stormtroopocat')

Like links, Images also have a footnote style syntax

![Alt text](https://octodex.github.com/images/dojocat.jpg 'The Dojocat')

With a reference later in the document defining the URL location:

## Plugins

The killer feature of `markdown-it` is very effective support of [syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).

### [Emojies](https://github.com/markdown-it/markdown-it-emoji)

> Classic markup: :wink: :cry: :laughing: :yum:
>
> Shortcuts (emoticons): :-) :-( 8-) ;)

see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.

### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)

- 19^th^
- H\~2\~O

### [&lt;ins&gt;](https://github.com/markdown-it/markdown-it-ins)

++Inserted text++

### [&lt;mark&gt;](https://github.com/markdown-it/markdown-it-mark)

Marked text

### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)

Footnote 1 link\[^first\].

Footnote 2 link\[^second\].

Inline footnote^\[Text of inline footnote\] definition.

Duplicated footnote reference\[^second\].

\[^first\]: Footnote **can have markup**

```
and multiple paragraphs.
```

\[^second\]: Footnote text.

### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)

Term 1

: Definition 1 with lazy continuation.

Term 2 with _inline markup_

: Definition 2

```
{ some code, part of Definition 2 }

Third paragraph of definition 2.
```

_Compact style:_

Term 1 \~ Definition 1

Term 2 \~ Definition 2a \~ Definition 2b

### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)

This is HTML abbreviation example.

It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.

\*\[HTML\]: Hyper Text Markup Language

### [Custom containers](https://github.com/markdown-it/markdown-it-container)

::: warning _here be dragons_ :::
Loading