🧪- Página de Pruebas 🧪

Esto es un fichero de pruebas a ver como funcionan las carpetas.

$ obsidianhtml convert -i .\config.yaml
$ obsidianhtml serve --directory output/html --port 8000

Con el fichero de configuración :

obsidian_entrypoint_path_str: 'c:/users/frosado/notas/prueba.md'
obsidian_folder_path_str: 'c:/users/frosado/notas'

Ahora, usando obsidian como editor y obsidianhtml puedo tener mi sitio en github con una action como esta:

# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
  # Runs on pushes targeting the default branch
  push:
    branches: ["master"]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Install dependencies and run build
        run: |
          cd ${{ github.workspace }}
          ls -la
          pip install --upgrade pip
          pip install obsidianhtml==3.5.2
          pwd
          obsidianhtml convert -v
          touch html/.nojekyll
          cp --force -r --update --link resources html/
      - name: Upload artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: 'html'
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4

Con las ventajas de editar en markdown y obsidian

Latex

\[ \begin {vmatrix}a & b \\ c & d \end {vmatrix}=ad-bc \]

Hasta simplemente usar \(\pi\) o \(\omega\) en una línea.

Mermaid

No soy muy fan de mermaid, pero puede ser util :

gitGraph commit commit branch develop commit commit commit checkout main commit commit
classDiagram Class01 <|-- AveryLongClass : Cool Class03 *-- Class04 Class05 o-- Class06 Class07 .. Class08 Class09 --> C2 : Where am i? Class09 --* C3 Class09 --|> Class07 Class07 : equals() Class07 : Object[] elementData Class01 : size() Class01 : int chimp Class01 : int gorilla Class08 <--> C2: Cool label
sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts
prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!
gantt dateFormat YYYY-MM-DD title Adding GANTT diagram to mermaid excludes weekdays 2014-01-10 section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, after des2, 5d Future task2 : des4, after des3, 5d
Left-click: follow link, Right-click: select node, Scroll: zoom
x