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

Create prototype NodeJS script #1

Closed
ianjennings opened this issue Jul 25, 2020 · 1 comment
Closed

Create prototype NodeJS script #1

ianjennings opened this issue Jul 25, 2020 · 1 comment

Comments

@ianjennings
Copy link
Collaborator

Create a basic NodeJS script that:

  • takes a gibhub url as input
  • reads the repo by gihub URL to find the docsify folder
  • runs the docsify compile command to generate the source
  • uploads the compiled docsify assets to s3
@ianjennings
Copy link
Collaborator Author

Also no need to compile using docsify, the way docsify works is u just need a script tag in a index.html and u can add ur config there and that takes care of all the css and js
[9:25 PM]
So barebones, what we are doing is:

  • take in a repo url
  • Return an html with docsify config filled out
<!-- index.html -->

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta charset="UTF-8">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css" />
</head>
<body>
  <div id="app"></div>
  <script>
    window.$docsify = {
      //...
    }
  </script>
  <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
</body>
</html>

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

No branches or pull requests

2 participants