Skip to content

Commit 9293ef7

Browse files
authored
Merge pull request #915 from marionbarker/add_include_and_external_site_features
Automate handling of external links
2 parents a56642e + 6d9a3e8 commit 9293ef7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+468
-384
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This repository contains the source files for [Loop's](https://github.com/LoopKi
1414
- [**Requirements**](https://loopkit.github.io/loopdocs/intro/requirements/)
1515
- [Build Loop](https://loopkit.github.io/loopdocs/intro/requirements/#two-loop-build-methods)
1616
- [Configuration](https://loopkit.github.io/loopdocs/loop-3/loop-3-overview/)
17-
- [Usage](https://loopkit.github.io/loopdocs/operation/loop/open-loop/)
17+
- [Usage](https://loopkit.github.io/loopdocs/operation/loop/close-loop/)
1818
- [Troubleshooting](https://loopkit.github.io/loopdocs/troubleshooting/overview/)
1919
- Remote monitoring and commands with [*Nightscout*](https://loopkit.github.io/loopdocs/nightscout/overview/)
2020
- [FAQs](https://loopkit.github.io/loopdocs/faqs/overview-faqs/)
@@ -52,7 +52,8 @@ If it is a more substantive change and you want to [install LoopDocs locally](#i
5252
```shell
5353
cd loopdocs # Make sure you are in the folder where you cloned this repository
5454

55-
python -m pip install -r requirements.txt
55+
python -m pip install -r dev-requirements.txt
56+
python -m pip install -r requirements.txt
5657
```
5758

5859
## Run

dev-requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip-tools

dev-requirements.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --output-file=dev-requirements.txt dev-requirements.in
6+
#
7+
build==1.2.2.post1
8+
# via pip-tools
9+
click==8.1.7
10+
# via pip-tools
11+
packaging==24.1
12+
# via build
13+
pip-tools==7.4.1
14+
# via -r dev-requirements.in
15+
pyproject-hooks==1.2.0
16+
# via
17+
# build
18+
# pip-tools
19+
wheel==0.44.0
20+
# via pip-tools
21+
22+
# The following packages are considered to be unsafe in a requirements file:
23+
# pip
24+
# setuptools

docs/browser/automatic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ The `alive` branch you need is created automatically when you run the `Build Loo
9797
!!! warning "I got an error regarding a branch with `alive` in the name"
9898
* Sometimes you get an error about an `alive` branch
9999
* If you do get an error, simply delete the branch and run the `Build Loop` action again
100-
* Use this [GitHub link](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository#deleting-a-branch){: target="_blank" } or ask for help when deleting a branch
100+
* Use this [GitHub link](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository#deleting-a-branch) or ask for help when deleting a branch
101101
* You can delete every branch that starts with the name `alive`
102102
* Leave the other branches alone unless a mentor directs you to take action
103103

@@ -217,7 +217,7 @@ Your build will run on the following conditions:
217217

218218
To enable the scheduled build and sync, the `GH_PAT` must hold the `workflow` permission scopes. This permission serves as the enabler for automatic and scheduled builds with browser build. To disable this, follow these steps:
219219

220-
1. Go to your [FastLane Access Token](https://github.com/settings/tokens){: target="_blank" }
220+
1. Go to your [FastLane Access Token](https://github.com/settings/tokens)
221221
1. If it says `repo`, `workflow` next to the `FastLane Access Token` link, then automatic building is enabled
222222
1. To disable automatic update and build, click on the link to open the token detail view
223223
* Click to uncheck the `workflow` box
@@ -236,7 +236,7 @@ What if I decide I don't want the automatic building feature?
236236
* Otherwise, you may see the dreaded "Loop Beta has expired" message, have a Loop that won't open and not have a version ready to go in TestFlight that you can install within a few seconds
237237

238238
* If you are taking a break from Loop and want to stop monthly Build emails, consider disabling actions for the `Build Loop` action for your app.
239-
* [GitHub Directions to Disable and Enable a Workflow](https://docs.github.com/en/actions/using-workflows/disabling-and-enabling-a-workflow#disabling-a-workflow){: target="_blank" }
239+
* [GitHub Directions to Disable and Enable a Workflow](https://docs.github.com/en/actions/using-workflows/disabling-and-enabling-a-workflow#disabling-a-workflow)
240240
* It is the Build action that kicks off the update and build steps, so simply disabling the one action is sufficient
241241

242242
* If you are done with Loop, you can delete the whole repository; but you should be sure about this because you'll need to start over with [Configure to use Browser](bb-overview.md#configure-to-use-browser) to restore ability to build Loop with GitHub.

docs/browser/bb-errors.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ If you are having trouble:
2828

2929
These are two places to ask for help, but please choose only one. You may get a faster response from Facebook, but there are mentors on both sites:
3030

31-
* [LoopandLearn Facebook Group](https://www.facebook.com/groups/LOOPandLEARN){: target="_blank" }
32-
* [Zulipchat: Loop: Build Help]( https://loop.zulipchat.com/#narrow/channel/148543-Loop/topic/Browser.20Build){: target="_blank" }
31+
* [LoopandLearn Facebook Group](https://www.facebook.com/groups/LOOPandLEARN)
32+
* [Zulipchat: Loop: Build Help]( https://loop.zulipchat.com/#narrow/channel/148543-Loop/topic/Browser.20Build)
3333

3434
### What Information is Needed for Help
3535

@@ -298,7 +298,7 @@ If there are *Apple* Developer agreements you have not accepted, you may get err
298298
* If you previously built successfully - it is almost certainly the agreement
299299
* It can take 15 minutes to an hour after the agreement is signed before it can be used
300300
301-
If you need detailed instructions, click on this [<code>Apple Program License Agreement</code> Help Page](https://support.pushpay.com/s/article/Accepting-the-Apple-Program-License-Agreement){: target="_blank" }.
301+
If you need detailed instructions, click on this [<code>Apple Program License Agreement</code> Help Page](https://support.pushpay.com/s/article/Accepting-the-Apple-Program-License-Agreement).
302302
303303
You can also get this message if the credit card used to purchase the Developer account is not current, e.g., no longer valid or credit card expiration date, as entered at *Apple*, has passed.
304304
@@ -428,7 +428,7 @@ Click on this link to [Delete Identifiers](#delete-identifiers).
428428
#### Rerun Steps with correct TEAMID
429429
430430
1. Enter your `TEAMID` correctly in the repository `Secrets`
431-
- Make sure you use copy and paste from your [Apple Developer Membership](https://developer.apple.com/account/#!/membership){: target="_blank" } page for that `TEAMID`.
431+
- Make sure you use copy and paste from your [Apple Developer Membership](https://developer.apple.com/account/#!/membership) page for that `TEAMID`.
432432
- Follow the update instructions here (this example is for `GH_PAT`, you'll do the same but for `TEAMID`) [Update Secrets](bb-update.md#update-secrets)
433433
434434
1. Run Action: [Configure to Use Browser: `Add Identifiers`](identifiers.md#add-identifiers) again
@@ -441,7 +441,7 @@ You will remove that app and create a new one.
441441
442442
#### Remove App with Incorrect `TEAMID`
443443
444-
Go to [`App Store Connect / Apps`](https://appstoreconnect.apple.com/apps){: target="_blank" } and follow the numbered steps in the graphic below.
444+
Go to [`App Store Connect / Apps`](https://appstoreconnect.apple.com/apps) and follow the numbered steps in the graphic below.
445445
446446
1. Find the *Loop* app you created earlier and click on it
447447
2. On the left side, under `General`, click on `App Information`
@@ -493,7 +493,7 @@ If you see this phrase, the `fastlane` package that is utilized during the `3. C
493493
494494
To fix this error:
495495
496-
- Open this link: [https://github.com/settings/tokens/](https://github.com/settings/tokens/){: target="_blank" }
496+
- Open this link: [https://github.com/settings/tokens/](https://github.com/settings/tokens/)
497497
- Here you will see your personal access token (`Fastlane Access Token`) that was created during [Configure to Use Browser: Setup *GitHub*: Create `GitHub Personal Access Token`](../browser/secrets.md#create-github-personal-access-token)
498498
- Note that `Tokens (classic)` is highlighted in the menu on the left
499499
- Click on the token name (should be bold, blue **`Fastlane Access Token`** ) to open its detail page
@@ -545,7 +545,7 @@ These steps are only needed to make room for a `Certificate` when running versio
545545
546546
1. Delete an old `Distribution Certificate`
547547
* *Apple* limits you to two `Distribution Certificates`
548-
* Use this link to view your [Apple Developer Certificates](https://developer.apple.com/account/resources/certificates/list){: target="_blank" }
548+
* Use this link to view your [Apple Developer Certificates](https://developer.apple.com/account/resources/certificates/list)
549549
* Carefully examine the `Type` column - do **not** delete a `Development` `Certificate`
550550
* If you accidentally delete a `Development` `Type` certificate associated with an Xcode build for your Loop app - it will stop working and you will be very sad
551551
* Click on the oldest `Distribution` `Certificate` and revoke it
@@ -598,7 +598,7 @@ If that phrase is found, then:
598598
599599
600600
* This can also be caused if you correctly created the *Loop* App but entered an incorrect value for the `TEAMID`.
601-
* If you have the incorrect `TEAMID`, check this link: [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/identifiers/list){: target="_blank" } for entries with the incorrect `TEAMID` embedded
601+
* If you have the incorrect `TEAMID`, check this link: [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/identifiers/list) for entries with the incorrect `TEAMID` embedded
602602
* For example, if your `TEAMID` is `0123456789`, but you entered `000123`, you may see both of these in your identifiers list
603603
* `com.0123456789.loopkit.Loop`
604604
* `com.000123.loopkit.Loop`
@@ -655,7 +655,7 @@ This tells you, the `Bundle ID` you selected in [First-Time: Create Loop App in
655655
656656
Once you have created an app in the *App Store* that is not based on your `TEAMID`, you cannot delete it, but you can Remove it (i.e. hide it so that it is no longer visible on this page and you don't accidentally click on it).
657657
658-
1. Open this link: [App Store Connect / Apps](https://appstoreconnect.apple.com/apps){: target="_blank" } to view your apps; log in if needed.
658+
1. Open this link: [App Store Connect / Apps](https://appstoreconnect.apple.com/apps) to view your apps; log in if needed.
659659
1. Find the App with the wrong `Bundle ID` and click on it
660660
1. On the left-hand side, click on `App Information` (under `General`)
661661
* Confirm the `Bundle ID` listed does not include your `TEAMID`
@@ -787,7 +787,7 @@ Once you get a successful build, you return to using your normal `branch` for fu
787787
788788
Assuming you have successfully built using the Browser-Build / *GitHub* method before:
789789
790-
* If the details show this message, `Could not install WWDR certificate`, make sure your [*Apple developer* account](https://developer.apple.com){: target="_blank" } is in good standing and that there are no agreements that need to be accepted and that your `Distribution Certificates` did not expire
790+
* If the details show this message, `Could not install WWDR certificate`, make sure your [*Apple developer* account](https://developer.apple.com) is in good standing and that there are no agreements that need to be accepted and that your `Distribution Certificates` did not expire
791791
* Sometimes this is a sign that *Apple* did not respond to a request, this failure happens in the first few minutes
792792
* Repeat the build and it should be fine the next time
793793
@@ -811,7 +811,7 @@ There might be several reasons to do this:
811811
These steps are needed to reset your `Match-Secrets`:
812812
813813
1. Delete your `Match-Secrets` `Repository`
814-
* Instructions to delete a repository are found at [*GitHub* Docs](https://docs.github.com/en/repositories/creating-and-managing-repositories/deleting-a-repository){: target="_blank" }
814+
* Instructions to delete a repository are found at [*GitHub* Docs](https://docs.github.com/en/repositories/creating-and-managing-repositories/deleting-a-repository)
815815
1. In your fork of LoopWorkspace:
816816
* This will automatically create a new `Match-Secrets` `Repository` for you
817817
* Run the `Action`: `Create Certificates`
@@ -835,7 +835,7 @@ These instructions are useful if:
835835
836836
The `Identifier` that is associated with the `Loop` identifier cannot be deleted if it is already in the *App Store* but all others can. If you attempt to delete the `XC` *Loop* identifier, you may be told it cannot be deleted because it is in use in the app store. That's OK. If a `Bundle ID` has ever been associated with an app in the *App Store*, you cannot delete the `Identifier`.
837837
838-
* Open this link: [Certificates, Identifiers & Profiles: Identifiers List](https://developer.apple.com/account/resources/identifiers/list){: target="_blank" } on the *Apple Developer* site.
838+
* Open this link: [Certificates, Identifiers & Profiles: Identifiers List](https://developer.apple.com/account/resources/identifiers/list) on the *Apple Developer* site.
839839
* Use the graphic below as a guide to removing identifiers
840840
* Keep repeating the steps until you've removed all the identifiers you can (or want to) delete
841841
* It is OK to delete an identifier even if it does have your correct `TEAMID`

docs/browser/bb-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ To build the&nbsp;_<span translate="no">Loop</span>_&nbsp;app using a browser, y
3030

3131
Complete instructions are found at this link for those comfortable with using *GitHub* and navigating the *Apple Developer* and *Apple App Connect* pages.
3232

33-
* [Using GitHub Actions + FastLane to deploy to TestFlight](https://github.com/LoopKit/LoopWorkspace/blob/main/fastlane/testflight.md){: target="_blank" }
33+
* [Using GitHub Actions + FastLane to deploy to TestFlight](https://github.com/LoopKit/LoopWorkspace/blob/main/fastlane/testflight.md)
3434

3535
### How-to Video to Build with a Browser
3636

3737
In addition to the pages linked below in [Configure to use Browser](#configure-to-use-browser), there is a narrated video of each step needed to build using a browser. (This video shows build steps for version 3.2.3 or older. Some items are simplified for version 3.4.1 and newer.)
3838

39-
* [How to Build the *Loop* App With a Web Browser](https://www.youtube.com/watch?v=kiu5ho0MTW8){: target="_blank" }
39+
* [How to Build the *Loop* App With a Web Browser](https://www.youtube.com/watch?v=kiu5ho0MTW8)
4040

4141
### Configure to use Browser
4242

@@ -98,7 +98,7 @@ Instructions to make updates are found at:
9898

9999
There is also a helpful video for this process. Once again, this was prepared for an earlier version 3.2.3 or older. With version 3.4.1 and newer, the update and build is automatic if your *Apple* Developer account is active, agreements are signed and certificates are valid:
100100

101-
* [How to Update and Rebuild DIY Loop with a Web Browser](https://www.youtube.com/watch?v=0ipTsiqbbrQ){: target="_blank" }
101+
* [How to Update and Rebuild DIY Loop with a Web Browser](https://www.youtube.com/watch?v=0ipTsiqbbrQ)
102102

103103
> With `Loop 3.6.0`, certificates are automatically created and renewed. You no longer need to renew certificates as a separate step.
104104
@@ -118,7 +118,7 @@ These considerations were prepared when most people were using a Mac computer to
118118
* Anything with a browser works to build the *Loop* app: PC, Tablet, Mac or iPad
119119
* The *TestFlight* app is used to install the *Loop* app on your iPhone
120120
* Compatible version of *Xcode* is provided by *GitHub*
121-
* The time required for the initial setup to build with a browser may take less time than one *macOS* and *Xcode* version update for those using [Build with *Mac*](../build/overview.md)
121+
* The time required for the initial setup to build with a browser may take less time than one *macOS* and *Xcode* version update for those using [Build with *Mac*](../build/overview.md){: target="_blank" }
122122
* Automatic Updates are loaded into *TestFlight*
123123
* With version 3.4 and newer, builds are automatically prepared at least once a month
124124
* You choose when to install the new app from TestFlight onto your phone

0 commit comments

Comments
 (0)