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

Switch docs to shayu #1319

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Switch docs to shayu #1319

wants to merge 13 commits into from

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented Feb 2, 2022

Zola is unfortunately not very flexible. And the Tera syntax is terrible.

Zola is unfortunately not very flexible. And the Tera syntax is terrible.
@jtojnar jtojnar marked this pull request as draft February 2, 2022 14:29
@jtojnar
Copy link
Member Author

jtojnar commented Feb 2, 2022

Currently failing with

[SHAYU] Fatal Error:
            at Object._raise (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:506:17)
    at Object.raiseWithData (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:499:17)
    at Object.raise (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:460:17)
    at Object.checkExpressionErrors (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:3809:12)
    at Object.parseMaybeAssign (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:11718:12)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:11646:39
    at Object.allowInAnd (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:13646:16)
    at Object.parseMaybeAssignAllowIn (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:11646:17)
    at Object.parseVar (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14654:70)
    at Object.parseVarStatement (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14458:10)
    at Object.parseStatementContent (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14017:21)
    at Object.parseStatement (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:13942:17)
    at Object.parseExportDeclaration (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:15267:17)
    at Object.maybeParseExportDeclaration (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:15213:31)
    at Object.parseExport (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:15140:29)
    at Object.parseStatementContent (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14058:27)

@jtojnar
Copy link
Member Author

jtojnar commented Feb 2, 2022

Running in dev mode revealed more info, I forgot to change = to : in one page when converting the toml front matter to the meta object:

$ NODE_ENV=development node .
Webserver listening on http://localhost:8080
Livereloadserver listening on 35729
[PAGE] found 21 pages
[SHAYU] Fatal Error:
        SyntaxError: unknown: Invalid shorthand property initializer. (2:10)

  1 | export const meta = {
> 2 |     title = "selfoss – the open source web based rss reader and multi source mashup aggregator",
    |           ^
  3 | }
    at Object._raise (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:506:17)
    at Object.raiseWithData (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:499:17)
    at Object.raise (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:460:17)
    at Object.checkExpressionErrors (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:3809:12)
    at Object.parseMaybeAssign (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:11718:12)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:11646:39
    at Object.allowInAnd (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:13646:16)
    at Object.parseMaybeAssignAllowIn (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:11646:17)
    at Object.parseVar (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14654:70)
    at Object.parseVarStatement (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14458:10)
    at Object.parseStatementContent (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14017:21)
    at Object.parseStatement (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:13942:17)
    at Object.parseExportDeclaration (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:15267:17)
    at Object.maybeParseExportDeclaration (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:15213:31)
    at Object.parseExport (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:15140:29)
    at Object.parseStatementContent (/home/jtojnar/Projects/selfoss/docs/node_modules/@babel/parser/lib/index.js:14058:27)
From previous event:
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/mdxPage.js:112:18
From previous event:
    at render (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/mdxPage.js:106:20)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/mdxPage.js:29:10
From previous event:
    at getMdxPage (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/mdxPage.js:27:5)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:49:11
From previous event:
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:47:18
    at processImmediate (node:internal/timers:464:21)
From previous event:
    at getAllMdxPages (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:45:5)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:56:10
From previous event:
    at buildPages (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:55:20)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/livereload/index.js:125:14
From previous event:
    at Object.start (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/livereload/index.js:117:5)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/index.js:79:39
    at processImmediate (node:internal/timers:464:21)
From previous event:
    at shayu (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/index.js:75:5)
    at Object.<anonymous> (/home/jtojnar/Projects/selfoss/docs/index.js:21:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

@jtojnar
Copy link
Member Author

jtojnar commented Feb 2, 2022

Continuing bug galore:

[PAGE] found 21 pages
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
    in MDXCreateElement
    in Fragment
    in wrapper
    in MDXCreateElement
    in MDXContent
    in Context.Provider
    in MDXProvider
    in div
    in div
    in body
    in html
    in Layout
    in Context.Provider
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
    in MDXCreateElement
    in Fragment
    in wrapper
    in MDXCreateElement
    in MDXContent
    in Context.Provider
    in MDXProvider
    in div
    in div
    in body
    in html
    in Layout
    in Context.Provider
[SHAYU] Fatal Error:
        Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
    at ReactDOMServerRenderer.render (/home/jtojnar/Projects/selfoss/docs/node_modules/react-dom/cjs/react-dom-server.node.development.js:3743:17)
    at ReactDOMServerRenderer.read (/home/jtojnar/Projects/selfoss/docs/node_modules/react-dom/cjs/react-dom-server.node.development.js:3373:29)
    at Object.renderToStaticMarkup (/home/jtojnar/Projects/selfoss/docs/node_modules/react-dom/cjs/react-dom-server.node.development.js:4004:27)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/renderedPage.js:105:37
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/renderedPage.js:104:10
From previous event:
    at reactRenderAsync (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/renderedPage.js:103:20)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/renderedPage.js:45:10
From previous event:
    at getRenderedPage (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/page/renderedPage.js:44:20)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:84:12
From previous event:
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:83:22
    at processImmediate (node:internal/timers:464:21)
From previous event:
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:82:18
From previous event:
    at buildPages (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/build.js:64:5)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/livereload/index.js:125:14
From previous event:
    at Object.start (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/lib/livereload/index.js:117:5)
    at /home/jtojnar/Projects/selfoss/docs/node_modules/shayu/index.js:79:39
    at processImmediate (node:internal/timers:464:21)
From previous event:
    at shayu (/home/jtojnar/Projects/selfoss/docs/node_modules/shayu/index.js:75:5)
    at Object.<anonymous> (/home/jtojnar/Projects/selfoss/docs/index.js:31:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant