Skip to content

Commit

Permalink
add user doc (testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightbridge-KS committed Aug 1, 2024
1 parent d776810 commit 02b7000
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy to Netlify
name: Build and Deploy App to Netlify
on:
push:
pull_request:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/netlify_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish User Docs
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: netlify
path: docs
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
91 changes: 91 additions & 0 deletions dev/list-proto.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# List Protocol"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"from pyhere import here\n",
"from pathlib import Path\n",
"import pandas as pd\n",
"sys.path.insert(1, str(Path.cwd().parent)) \n",
"\n",
"from designcter.proto import protocols, exam_id_protocol_id, protocols_id_name"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Create DF"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'protocol_name': 'Routine WA',\n",
" 'exam_name': 'CTWA',\n",
" 'phase_design_text': '\\n- Venous (whole)\\n- Delay (liver)\\n',\n",
" 'contrast_text': 'Oral (limited water), Rectal (water)'}"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"protocols[\"ct_wa_routine\"]"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
"protocols_df = pd.DataFrame({\n",
" \"protocol_name\": [protocols[k][\"protocol_name\"] for k in protocols.keys()],\n",
" \"exam_name\": [protocols[k][\"exam_name\"] for k in protocols.keys()],\n",
" \"phase_design_text\": [protocols[k][\"phase_design_text\"] for k in protocols.keys()],\n",
" \"contrast_text\": [protocols[k][\"contrast_text\"] for k in protocols.keys()],\n",
"})"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.quarto/
_out/*
!_out/*.docx
Binary file added docs/_out/docs.docx
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- source: docs.qmd
netlify:
- id: eb3bf39d-e7c3-464a-8eb4-f4f6ee60ceb6
url: 'https://design-cter-userguide.netlify.app'
10 changes: 10 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project:
title: "docs"
output-dir: "_out"

format:
html: default
docx: default

freeze: true

9 changes: 9 additions & 0 deletions docs/docs.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "docs"
---

## Quarto

Hello

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

0 comments on commit 02b7000

Please sign in to comment.