guides:editing_ubnetdef_website

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guides:editing_ubnetdef_website [2017/03/24 06:54]
jamesdro Actually have content
guides:editing_ubnetdef_website [2017/09/18 18:18] (current)
jeredgei [2. Clone the website repository]
Line 14: Line 14:
 ===== 2. Clone the website repository ===== ===== 2. Clone the website repository =====
 The website is located [here](https://​github.com/​ubnetdef/​website). ​ Clone it (which means "​download"​) to your local computer. ​ As a note, now's a good time to ensure you have a GitHub account, and are added to the UBNetDef GitHub account. The website is located [here](https://​github.com/​ubnetdef/​website). ​ Clone it (which means "​download"​) to your local computer. ​ As a note, now's a good time to ensure you have a GitHub account, and are added to the UBNetDef GitHub account.
 +
 +Netdef Repo: https://​github.com/​ubnetdef/​website.git
 +
 +Lockdown Repo: https://​github.com/​ubnetdef/​lockdown-website
 +
 +**Git Command:**
 +
 +`git clone "​REPO"​`
 +
 +After cloning for the first time, there is no need to reclone the repo. To update your copy of the website to the most current version use the command `git pull` from a git CLI in the directory you previously created.
 +
  
 ===== 3. Make some changes ===== ===== 3. Make some changes =====
Line 20: Line 31:
 ===== 4. You're Done! ===== ===== 4. You're Done! =====
 Once you push them to the GitHub repo, the website will auto-magically download the changes, and build it. Woah! It's magic. Once you push them to the GitHub repo, the website will auto-magically download the changes, and build it. Woah! It's magic.
 +
 +**Git commands:**
 +
 +`git add -A`
 +
 +`git committ -m "​Change comments"​`
 +
 +`git push`
  
 {{:​guides:​magic.jpeg?​400|}} {{:​guides:​magic.jpeg?​400|}}
  
-===== AdvancedThe hugo directory structure =====+====== Advanced ​====== 
 +===== The hugo directory structure =====
   * Anything inside the `static/` directory automatically gets copied into the ubnetdef.org'​s website root.   * Anything inside the `static/` directory automatically gets copied into the ubnetdef.org'​s website root.
     * Example: If I have a file called `test.txt` inside the `static/` directory, you will be able to access it via `https://​ubnetdef.org/​test.txt`     * Example: If I have a file called `test.txt` inside the `static/` directory, you will be able to access it via `https://​ubnetdef.org/​test.txt`
   * The `content/` directory contains, well, the page content. It is rendered in markdown.   * The `content/` directory contains, well, the page content. It is rendered in markdown.
  
-===== Advanced: ​How the building process works =====+===== How the building process works =====
   * A webhook is setup on the GitHub repo, that will ping a url once a commit is pushed   * A webhook is setup on the GitHub repo, that will ping a url once a commit is pushed
   * We run [this webhook software](https://​github.com/​adnanh/​webhook) that will listen for the "​ping"​ from GitHub, and run a bash script.   * We run [this webhook software](https://​github.com/​adnanh/​webhook) that will listen for the "​ping"​ from GitHub, and run a bash script.
  • guides/editing_ubnetdef_website.1490338451.txt.gz
  • Last modified: 2017/03/24 06:54
  • by jamesdro