Skip to content

Commit

Permalink
Setting up forms
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbusboom committed Aug 16, 2024
1 parent 1cfbbce commit f0b7535
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Notify Telemetry

on: [push]

jobs:
notify_telemetry:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Send POST request
env:
GITHUB_USERNAME: ${{ github.actor }}
REPO_URL: ${{ github.repository }}
EVENT_TYPE: ${{ github.event_name }}
run: |
curl -X POST https://student-telem.do.jointheleague.org/acct/register \
-H "Content-Type: application/json" \
-d '{"username": "'"${GITHUB_USERNAME}"'", "repo_url": "'"${REPO_URL}"'", "event_type": "'"${EVENT_TYPE}"'"}'
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
templates_path = ['_templates']
exclude_patterns = []

html_last_updated_fmt = '%b %d, %Y %H:%M'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
4 changes: 3 additions & 1 deletion docs/source/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ If you already have an account, sign into it now.

## 2: Tell us your Github name

<iframe src="/forms/github.html" width="640" height="250" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
Let us know your Github name so we can track your progress.

<iframe src="/forms/github.html" width="600" height="250" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>


## 3: Get the Source Code
Expand Down
4 changes: 2 additions & 2 deletions docs/source/html/forms/github.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Compact Form</title>
<style>
body {
Expand All @@ -13,7 +13,6 @@
form {
display: flex;
flex-direction: column;
max-width: 400px;
margin: 0 auto;
}

Expand All @@ -24,6 +23,7 @@
}

.form-group label {
margin-right: 10px;
flex-basis: 45%;
}

Expand Down

0 comments on commit f0b7535

Please sign in to comment.