ralexander-phi / marp-action Goto Github PK
View Code? Open in Web Editor NEWPublish your Marp Presentation to GitHub Pages automatically using a GitHub Action
Home Page: https://alexsci.com/test-marp-action/
License: MIT License
Publish your Marp Presentation to GitHub Pages automatically using a GitHub Action
Home Page: https://alexsci.com/test-marp-action/
License: MIT License
Github has been making this change over a while and I think that may break this action.
https://hackaday.com/2020/09/15/githubs-move-away-from-passwords-a-sign-of-things-to-come/
Hello,
I really like the idea of automatically converting my markdown to html and publishing them to GH pages via this action. Unfortunately I couldn't get images working.
I had a really basic setup, one of my markdown slides had images in it, using the normal syntax of:
Some text: ![](image_file_name.png)
Some other text: ![](some_other_image_file.png)
I've tried a number of iterations:
<path_to_markdown_file>/docs/assets/images
directory and using docs/assets/images/image_file_name.png
inside the parens in my slides<repo_root>/docs/assets/images
directory<repo_root>/img
directory--input_dir
doesn't contain the repo's root, see below)None of which worked ๐
If i don't use this action, but commit my markdown slides to the gh-pages
branch directly, the images do show up. But if I use the action, commit to devel
and have the Action convert and publish then the images become broken links, with a 404 error.
I'm using the master
version of your plugin. Here's my action config file:
# This is a basic workflow to help you get started with Actions
name: Publish Pages
# Controls when the action will run.
# Triggers the workflow on push events for the devel branch
on:
workflow_dispatch:
push:
branches:
- devel
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# TODO(balint) move to self hosted runners once the repo is allowed to use them
# runs-on: [self-hosted]
runs-on: ubuntu-latest
- uses: actions/checkout@v2
- name: Build & Deploy to GitHub Pages
env:
MARP_ARGS: "--input-dir markdown_slides/ --output docs/"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PUBLISH_TO_BRANCH: gh-pages
# You'll want to set this to your domain
BASE_URL: <my base URL is here>
# consider using a tagged release here
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses
uses: ralexander-phi/marp-action@master
This action looks like it will be really useful, so thank you very much for creating it!
I was a long time user of GitPitch before it closed down, and I am looking to see whether I can use Marp as a replacement.
The way I used to create my GitPitch decks was that I would work off of the master/main branch, and once I gave a presentation I would create a branch at the point that I gave the talk, so that anyone who wanted to review the slide deck for that version of the talk could go back and look at it, and I could continue to tweak/change the slide deck on the master branch.
An example of this can be found here:
https://github.com/gep13-talks/CakeDemos
Is it possible for this action to support the creation of multiple folders in the site that is published to GitHub pages? i.e. a folder for each branch, and then I could give folks a link to the folder to view that version of the slide deck.
Thanks for any help that you can offer here!
@UnseenWizzard's fork has implemented some useful features.
Nico, would you be OK if I pulled these two commits upstream to this repo?
-Robert
I really like this action and I just started using this on one of my small projects.
It took me sometime to figure out how to setup the action just right since reading the bash script I couldn't figure out where some of the arguments were coming from. Perhaps you can include something in the instructions on how to add it to an existing projects so that all the environment variables are just right.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.