diff --git a/.github/workflows/github-pages-deploy.yml b/.github/workflows/github-pages-deploy.yml index cafff33d1..50fb29f6c 100644 --- a/.github/workflows/github-pages-deploy.yml +++ b/.github/workflows/github-pages-deploy.yml @@ -18,8 +18,37 @@ jobs: with: node-version: '14' - - name: Copy README to index.md - run: cp README.md index.md + - name: Install marked (Markdown parser) + run: npm install marked + + - name: Convert README to HTML + run: | + echo " + + + + + reNgine Documentation + + + + + $(node -e "const marked = require('marked'); const fs = require('fs'); console.log(marked.parse(fs.readFileSync('README.md', 'utf-8')))") + + " > index.html - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3