Socket
Socket
Sign inDemoInstall

docsify-server-renderer

Package Overview
Dependencies
20
Maintainers
3
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    docsify-server-renderer

docsify server renderer


Version published
Maintainers
3
Install size
3.74 MB
Created

Changelog

Source

4.11.4 (2020-06-18)

Bug Fixes

  • consistent location of search result (e9dd2de)
  • cover overlapping sidebar by removing z-index (0bf03f5)
  • cross-origin url cannot be redirected when "externalLinkTarget" is set to "_self" and "routerMode" is set to "history". (#1062) (fd2cec6), closes #1046 #1046 #1046
  • default html img resize if no height included (#1065) (9ff4d06)
  • fixed target and rel issue (fixes #1183) (3d662a5)
  • Inconsistent search and body rendering (dcb0aae)
  • rendering cover width bug (717991c)
  • search does not find the contents of the table (#1198) (31010e4)
  • The search error after setting the ID in the title (#1159) (6e554f8)
  • upgrade docsify from 4.10.2 to 4.11.2 (60b7f89)

Features

  • added html sanitizer for remote rendering (#1128) (714ef29)
  • update src/core/index.js to export all global APIs, deprecate old globals in favor of a single global DOCSIFY, and add tests for this (7e002bf)

Reverts

  • Revert "Updated docs site dark and light mode with switch and redesigned search bar using docsify-darklight-theme" (#1207) (26cb940), closes #1207 #1182

Readme

Source

docsify-server-renderer

Install

yarn add docsify-server-renderer

Usage

var Renderer = require('docsify-server-renderer')
var readFileSync = require('fs').readFileSync

// init
var renderer = new Renderer({
  template: readFileSync('./docs/index.template.html', 'utf-8').,
  config: {
    name: 'docsify',
    repo: 'docsifyjs/docsify'
  }
})

renderer.renderToString(url)
  .then(html => {})
  .catch(err => {})

index.template.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>docsify</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <link rel="stylesheet" href="//unpkg.com/docsify/themes/buble.css" title="buble" disabled>
</head>
<body>
  <!--inject-app-->
  <!--inject-config-->
  <script src="//unpkg.com/docsify/lib/docsify.js"></script>
</body>
</html>

FAQs

Last updated on 18 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc