Skip to content

Commit

Permalink
additional installation guides
Browse files Browse the repository at this point in the history
  • Loading branch information
FanWangEcon committed Nov 22, 2020
1 parent e37e7db commit 3c74851
Show file tree
Hide file tree
Showing 11 changed files with 4,603 additions and 603 deletions.
50 changes: 50 additions & 0 deletions nontex/development/python/fn_installations.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: |
| Develop Python Package with Sphinx
output:
html_document:
number_sections: true
toc: yes
html_notebook:
number_sections: true
toc: yes
word_document:
number_sections: true
pdf_document:
df_print: paged
number_sections: true
toc: yes
urlcolor: blue
always_allow_html: yes
---

Go back to [fan](http://fanwangecon.github.io/)'s [Tex4Econ and Miscellaneous Repository](http://fanwangecon.github.io/Tex4Econ/).

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, eval = FALSE)
```

# Develop Python Package with Sphinx

## RST

[cheatsheet](https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst)

### Sections

```
Chapter 1 Title
===============
Section 1.1 Title
-----------------
Subsection 1.1.1 Title
~~~~~~~~~~~~~~~~~~~~~~
Section 1.2 Title
-----------------
Chapter 2 Title
===============
```

### Definitions

*literal block*: ?
18 changes: 15 additions & 3 deletions nontex/git/g_basics/git_basics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ always_allow_html: yes

### Basic Git Commands

#### Git Connect to remote

```{bash}
# show all remote url
git remote -v
```

#### Git Undo All Local changes

```{r}
```

#### Check File Status

Check if a particular file has had local changes that have not been commited yet.
Expand All @@ -22,13 +34,13 @@ Use the [*git status*](https://git-scm.com/docs/git-status) command, with short
- *existing no change*: the *(st_git_status == "")* check will be true

```{r}
spg_modified <-
spg_modified <-
paste0('git status -s',
'C:/Users/fan/R4Econ/amto/array/fs_ary_mesh.Rmd')
spg_anewfile <-
spg_anewfile <-
paste0('git status -s',
'C:/Users/fan/R4Econ/math/differentiation/fs_differentiate_lhopital.Rmd')
spg_nochange <-
spg_nochange <-
paste0('git status -s',
'C:/Users/fan/R4Econ/math/func_ineq/fs_atkinson_ces.Rmd')
Expand Down
21 changes: 15 additions & 6 deletions nontex/git/g_branch/fs_branch.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,31 @@ Go back to [fan](http://fanwangecon.github.io/)'s [Repositories](https://github.

```{bash, eval = FALSE}
# Step into REPO
cd ~/ThaiJMP
cd ~/Repo
# List my branches
git branch
# Create new branch
git branch revise_for_red_submit
git branch revise_for_submit
git branch
# Work on new branch
git checkout revise_for_red_submit
git checkout revise_for_submit
# When pushing
git push -u github revise_for_red_submit
git push -u github revise_for_submit
# When pulling
git pull github revise_for_submit
# On different computer
git fetch github revise_for_red_submit
git checkout revise_for_red_submit
git fetch github revise_for_submit
git checkout revise_for_submit
# merge branches
# 1. checkout master
git checkout master
# 2. merge master with branch
git merge revise_for_submit
```
1,867 changes: 1,867 additions & 0 deletions nontex/git/g_branch/fs_branch.nb.html

Large diffs are not rendered by default.

24 changes: 17 additions & 7 deletions nontex/install/git/fs_git_setup.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,13 @@ By default, the **git push** command doesn’t transfer tags to remote servers.

```{bash}
git tag -l
git tag -a v0.1.1 -m "Genereate Package after updating to R 4.0.0 Arbor Day."
git show v0.1.1
git push github v0.1.1
git tag -a v0.1.3 -m "Genereate Package after updating to R 4.0.0 Arbor Day."
git tag -a v0.1.37 -m "pyfan with sphinx"
git show v0.1.37
git push github v0.1.37
```

## Githug pages
## Github pages

local test github pages. [Testing your GitHub Pages site locally with Jekyll](https://help.github.com/en/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll).

Expand All @@ -323,10 +324,10 @@ For testing github pages sites. On windows, install ruby using [windows-installe

```{bash}
ruby -v
gem -v
gem -v
gcc -v
g++ -v
make -v
g++ -v
make -v
gem install jekyll bundler
jekyll -v
Expand All @@ -349,3 +350,12 @@ http://localhost:4000
https://jekyllrb.com/tutorials/using-jekyll-with-bundler/
```


# Git Commands

## Stop tracking a particular file

```
cd ~/PrjOptiSNW
git filter-branch --tree-filter 'rm -f ~/PrjOptiSNW/PrjOptiSNW.mltbx' -- --all
```
Loading

0 comments on commit 3c74851

Please sign in to comment.