How to build a pandoc doc?

Dear Sir or Madam,

I’m trying to build a pdf thanks to pandoc with this script:

    executor: python/default
      - checkout
      - python/install-packages:
          args: pandoc
          pkg-manager: pipenv
      - python/install-packages:
          args: pandoc-include
          pkg-manager: pipenv
      - run:
          command: |
            pipenv run pandoc --from markdown --to latex --filter pandoc-include -C -o README.pdf
          name: Test it
  python: circleci/python@1.0.0
version: 2.1
      - build

However, each build failed with the error

Error: the command pandoc could not be found within PATH or Pipfile's [scripts].

Could you help me please? Thanks.

Then, I would like to deploy it (private repo) to add a link to the PDF in the Readme on Github. Would you know a good tutorial? Thanks.

Yours faithfully

Hi @florian6973,

Welcome to the CircleCI community forum!

As per the error, it looks like the command is not found and looks to be an issue with the PATH.

I will suggest to SSH into a container and run the commands manually and then check the error. This will help you in troubleshooting the issue quickly.

Pawan Bahuguna

Hi @Pawan,

I thank you very much for your welcome, your prompt answer, and your advice.

I finally suceeded in setting up my build with GitHub Actions. I had to install texlive-xetex before installing Pandoc. I don’t know if it is the cause of the error in CircleCI. I will try to debug my build on CircleCI with SSH into a container if I have more time :slight_smile:

Best regards,

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.