Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

distributed-press-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distributed-press-api-client

  • 0.5.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Distributed Press API client

This is an API client for Distributed Press.

Supports basic configuration and uploading the website's directory. It will create a tarball on the fly, and uses IO to minimize memory usage. May not work on every operating system.

Installation

Add this line to your Gemfile:

gem 'distributed-press-api-client'

And then execute:

bundle

Or install it yourself as:

gem install distributed-press-api-client

Usage

require 'distributed_press'

dp = DistributedPress.new
       url: 'https://api.distributed.press',
       api_key: 'https://github.com/hyphacoop/api.distributed.press#steps',
       project_domain: 'example.org'

dp.configure
dp.publish '/path/to/your/site'

API key and project domain can be passed as environment variables called DISTRIBUTED_PRESS_API_KEY and DISTRIBUTED_PRESS_PROJECT_DOMAIN respectively. API URL is optional and defaults to https://api.distributed.press.

Jekyll plugin

Note: May be moved to its own repository.

Install and add to _config.yml:

plugins:
- jekyll-distributed-press

Build and publish site:

JEKYLL_ENV=production DISTRIBUTED_PRESS_API_KEY=the_api_key bundle exec jekyll build

Other env vars:

DISTRIBUTED_PRESS_PROJECT_DOMAIN=your.domain.at.distributed.press
DISTRIBUTED_PRESS_API_URL=https://api.distributed.press

Contributing

Bug reports and pull requests are welcome on 0xacab.org at https://0xacab.org/sutty/distributed-press-api-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Sutty code of conduct.

If you like our plugins, please consider donating!

License

The gem is available as free software under the terms of the Affero GPL3 License.

Code of Conduct

Everyone interacting in the distributed-press-api-client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc