Skip to content

Commit d3a95c7

Browse files
authored
Merge pull request #58 from yashints/master
Added export to PDF and epub using a GitHub action
2 parents b71a06b + 1ff900f commit d3a95c7

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/main.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Advanced Usage
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FILE_NAME: react-interview-questions
7+
8+
jobs:
9+
convert_via_pandoc:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Create output directory
15+
run: |
16+
mkdir output # create output dir
17+
18+
- name: Create PDF
19+
uses: docker://pandoc/latex:2.9
20+
with:
21+
args: --pdf-engine=xelatex --output=output/${{env.FILE_NAME}}.pdf README.md
22+
23+
- name: Create epub
24+
uses: docker://pandoc/latex:2.9
25+
with:
26+
args: --output=output/${{env.FILE_NAME}}.epub README.md
27+
28+
- name: Upload
29+
uses: actions/upload-artifact@master
30+
with:
31+
name: output
32+
path: output

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
> Click :star:if you like the project. Pull Request are highly appreciated. Follow me [@SudheerJonna](https://twitter.com/SudheerJonna) for technical updates.
44
5+
## Downloading PDF/Epub formats
6+
7+
You can download the PDF and Epub version of this repository from the latest run on the [actions tab](https://github.com/sudheerj/reactjs-interview-questions/actions).
8+
59
### Table of Contents
610

711
| No. | Questions |
@@ -889,12 +893,15 @@
889893
The *Virtual DOM* works in three simple steps.
890894
891895
1. Whenever any underlying data changes, the entire UI is re-rendered in Virtual DOM representation.
896+
892897
![vdom](images/vdom1.png)
893898
894899
2. Then the difference between the previous DOM representation and the new one is calculated.
900+
895901
![vdom2](images/vdom2.png)
896902
897903
3. Once the calculations are done, the real DOM will be updated with only the things that have actually changed.
904+
898905
![vdom3](images/vdom3.png)
899906
900907

0 commit comments

Comments
 (0)