Git Product home page Git Product logo

pdfxblock's Introduction

pdfXBlock

Description

This XBlock provides an easy way to embed a PDF.

  • Download button available
  • (Optional) Source document download button, for example to provide your PPT file

Customize the XBlock

  • By default, PDF Download Allowed is set on True. The default value can be changed in pdfXBlock / pdf / pdf.py

Install / Update the XBlock

# Move to the folder where you want to download the XBlock
cd /edx/app/edxapp
# Download the XBlock
sudo -u edxapp git clone https://github.com/MarCnu/pdfXBlock.git
# Install the XBlock
sudo -u edxapp /edx/bin/pip.edxapp install pdfXBlock/
# Upgrade the XBlock if it is already installed, using --upgrade
sudo -u edxapp /edx/bin/pip.edxapp install pdfXBlock/ --upgrade
# Remove the installation files
sudo rm -r pdfXBlock

Reboot if something isn't right

sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:

Activate the XBlock in your course

Go to Settings -> Advanced Settings and set advanced_modules to ["pdf"].

Use the XBlock in a unit

Select Advanced -> PDF in your unit.

Working with Translations

For information about working with translations, see the Internationalization Support section of the Open edX XBlock Tutorial.

Working with Transifex

Prepare your environment:

$ mkvirtualenv pdf-xblock
$ make requirements

Also ensure that the Transifex client has the proper authentication in the ~/.transifexrc file.

Push new strings to Transifex:

$ make push_translations

To get the latest translations from Transifex:

$ make pull_translations

For testing purposes it's faster to avoid Transifex and work on dummy Esperanto translations:

$ make build_dummy_translations

pdfxblock's People

Contributors

omarithawi avatar marcnu avatar johnbaldwin avatar amirtds avatar thraxil avatar dependabot[bot] avatar

Stargazers

Nguyen Duc Huy Hoc 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.