Preparation

Preparation

Intro

  • 옵시디언으로 문서를 작성한 후, HUGO 를 이용해 정적 사이트로 빌드 하기 위해 필요한 준비과정을 간단히 살펴봅니다.
  • 자세한 내용은 Preparation 섹션에서 확인할 수 있습니다.

준비

옵시디언

  • 옵시디언 공식 웹사이트에 접속합니다.
  • 홈페이지에서 자신의 운영체제(Windows, macOS, Linux)에 맞는 설치 파일을 다운로드합니다.
  • 다운로드한 설치 파일을 실행합니다.
  • 설치 마법사의 안내에 따라 설치를 진행합니다.
  • d:\PlayGround 또는 임의의 폴더에 DocFlow 라는 이름의 볼트를 생성합니다.
    • DocFlow 는 앞으로 진행할 튜토리얼의 프로젝트 이름이기도 합니다.

Chocolatey 설치

  • 관리자 권한으로 PowerShell을 열고 아래 명령어를 실행합니다
    • Windows 검색창에 powershell을 입력합니다.
    • Windows PowerShell을 우클릭하고 관리자 권한으로 실행을 선택합니다.
    • Powershell에서 다음의 명령을 실행합니다.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Git

  • Powershell 에서 다음 명령어를 입력하여 Git 을 설치합니다.
choco install git -confirm

Hugo

  • Powershell 에서 다음 명령어를 입력하여 Hugo 설치를 진행합니다.
choco install hugo -confirm

Python

  • Powershell 에서 다음 명령어를 입력하여 Python 설치를 진행합니다.
choco install python

VS Code

  • Powershell 에서 다음 명령어를 입력하여 VS Code 설치를 진행합니다.
choco install vscode

Rust

  • Powershell 에서 다음 명령어를 입력하여 Rust 설치를 진행합니다.
choco install rust

Tauri

  • Powershell 에서 다음 명령어를 입력하여 Tauri 설치를 진행합니다.
cargo install tauri-cli

NPX

  • Powershell 에서 다음 명령어를 입력하여 NPX 설치를 진행합니다.
choco install nodejs

설치 확인

  • Powershell 에서 다음 명령어를 입력하여 Git이 성공적으로 설치되었는지 확인합니다.
git --version
  • 다음 명령어를 입력하여 Hugo가 성공적으로 설치되었는지 확인합니다.
hugo version
  • 다음 명령어를 입력하여 Python이 성공적으로 설치되었는지 확인합니다.
python --version
pip --version
  • 다음 명령어를 입력하여 Rust가 성공적으로 설치되었는지 확인합니다.
rustc --version
cargo --version
  • 다음 명령어를 입력하여 Tauri가 성공적으로 설치되었는지 확인합니다.
cargo-tauri --version
  • 다음 명령어를 입력하여 NPX가 성공적으로 설치되었는지 확인합니다.
npx -v
PS D:\PlayGround> git --version
git version 2.39.0.windows.1
PS D:\PlayGround> hugo version
hugo v0.129.0-e85be29867d71e09ce48d293ad9d1f715bc09bb9+extended windows/amd64 BuildDate=2024-07-17T13:29:16Z VendorInfo=gohugoio
PS D:\PlayGround> python --version
Python 3.11.4
PS D:\PlayGround> pip --version
pip 24.1.2 from C:\Users\YSY\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)
PS D:\PlayGround> rustc --version
rustc 1.78.0 (9b00956e5 2024-04-29)
PS D:\PlayGround> cargo --version
cargo 1.78.0 (54d8815d0 2024-03-26)
PS D:\PlayGround> cargo-tauri --version
tauri-cli 1.5.14
PS D:\PlayGround> npx -v
10.7.0
PS D:\PlayGround> 

작성

  • 옵시디언에서 _index 라는 제목으로 새 노트를 추가합니다.
  • About 이라는 이름으로 카테고리를 추가합니다.
    • _index 라는 제목으로 새 노트를 추가 합니다.
    • Intro 라는 제목으로 새 노트를 추가하고, 다음의 내용을 입력합니다.
## Greeting
안녕하세요.
## Intro
앞으로 잘 부탁합니다.
  • Guide 라는 이름으로 카테고리를 추가합니다.
    • , _index 라는 제목으로 노트를 추가합니다.
    • Guide 라는 제목으로 노트를 추가합니다.
  • PlayGround 폴더 구조는 다음과 같습니다.
└─DocFlow
    │ _index.md
    ├─.obsidian
    ├─About
    │      Intro.md
    │      _index.md
    └─Guide
            Guide.md
            _index.md