Skip to content

Commit

Permalink
Rename table of contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Altynbek Isabekov committed Feb 22, 2024
1 parent d611d42 commit 05e5c5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ jobs:
run: sudo apt-get -y install emacs-nox
- name: Install org-export
run: git clone https://github.com/nhoffman/org-export.git
- name: Export org file
- name: Export org file to index.html
run: ./org-export/org-export html --infile pyspark_cookbook.org --outfile index.html
- name: Rename "Table of Contents" to "PySpark Cookbook"
run: sed -i -E "s/Table of Contents/PySpark Cookbook/g" index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ $(MANUAL).docx: $(MANUAL).org
$(MANUAL).pdf: $(MANUAL).org
org-export pdf --infile $<

$(MANUAL).html: $(MANUAL).org
org-export html --infile $(MANUAL).org
index.html: $(MANUAL).org
org-export html --infile $(MANUAL).org --outfile $@
sed -i -E "s/Table of Contents/PySpark Cookbook/g" $@


Expand Down

0 comments on commit 05e5c5a

Please sign in to comment.