Skip to content

SSR not working #95

Closed
Closed
@theBliz

Description

@theBliz

Bug Report

Related to docsifyjs/docsify#704
When following the steps to launch SSR implementation of docsify you get errors and the only example repo doesn't work.

Steps to reproduce

npm i now docsify-cli -D
copy docsify's package.json info in your empty project package.json

{
    "name": "my-project",
    "scripts": {
      "start": "docsify start . -c ssr.config.js",
      "deploy": "now -p"
    },
    "files": [
      "docs"
    ],
    "docsify": {
      "config": {
        "basePath": "https://docsify.js.org/",
        "loadSidebar": true,
        "loadNavbar": true,
        "coverpage": true,
        "name": "docsify"
      }
    }
  }

Launch npm start or docsify start . -c ssr.config.js

What is current behaviour

The error unknown argument: ssr.config.js is generated preventing the server to run.

What is the expected behaviour

Not sure, haven't found any working sample

Other relevant information

By launching the server doing docsify start ., the server runs but nothing is rendered.

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Mojave 10.14.5

  • Node.js version: 10.16.0

  • npm/yarn version: npm 6.13.7

  • Browser version: Chrome 75.0.3770.142

  • Docsify version: 4.4.0

  • Docsify plugins: none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions