GithubHelp home page GithubHelp logo

helix-theblog-importer's Introduction

Helix Service

Helix TheBlog importer downloads the content associated to the provided url (blog post entry) and creates a markdown version stored in OneDrive.

  • if url is not part of the urls list - OneDrive XLSX file (/importer/urls.xlsx)
  • download url content
  • parse the dom, remove undesired blocks, extracts author, post, products and topics
  • transform to various snippets into markdown
  • upload to OneDrive
  • update the urls list

The importer cannot be called directly but is invoked by the scanner.

Options

  • FASTLY_SERVICE_ID: Service ID for "theblog"
  • FASTLY_TOKEN: a Fastly API Token

If you don't provide FASTLY_SERVICE_ID and FASTLY_TOKEN, then no redirects will be created for imported blog posts.

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript semantic-release

Installation

Setup

Installation

Deploy the action:

npm run deploy

Required env variables:

Connection to OneDrive:

  • AZURE_ONEDRIVE_CLIENT_ID
  • AZURE_ONEDRIVE_CLIENT_SECRET
  • AZURE_ONEDRIVE_REFRESH_TOKEN

Blob storage credentials (store images):

  • AZURE_BLOB_URI
  • AZURE_BLOB_SAS

OneDrive shared folder that contains the /importer/urls.xlsx file:

  • AZURE_ONEDRIVE_ADMIN_LINK

OneDrive shared folder: destination of the markdown file:

  • AZURE_ONEDRIVE_CONTENT_LINK

Openwhish credentials to invoke the helix-theblog-importer action:

  • OPENWHISK_API_KEY
  • OPENWHISK_API_HOST

Coralogix credentials to log:

  • CORALOGIX_API_KEY
  • CORALOGIX_LOG_LEVEL

Fastly credentials to store keys in dictionary (url shortcuts mapping):

  • FASTLY_SERVICE_ID
  • FASTLY_TOKEN

Development

Deploying Helix Service

Deploying Helix Service requires the wsk command line client, authenticated to a namespace of your choice. For Project Helix, we use the helix namespace.

All commits to master that pass the testing will be deployed automatically. All commits to branches that will pass the testing will get commited as /helix-theblog/helix-theblog-importer@ci<num> and tagged with the CI build number.

helix-theblog-importer's People

Contributors

dominique-pfister avatar greenkeeper[bot] avatar kptdobe avatar renovate[bot] avatar rofe avatar semantic-release-bot avatar trieloff avatar tripodsan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.