-
Notifications
You must be signed in to change notification settings - Fork 11
CCM-16446 updating readme guidence #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ecc03f4
CCM-17475 Adding breadcrumbs to mini-hub
aidenvaines-cgi 356a504
CCM-16446 First Draft
aidenvaines-cgi 8cefe2f
CCM-16446 Docs and FAQs
aidenvaines-cgi 02d5926
Merge branch 'main' into CCM-16446_UpdatingReadmeGuidence
aidenvaines-cgi 0c09ae9
CCM-17475 Adding breadcrumbs to mini-hub (#213)
aidenvaines-cgi 8f416bf
Merge branch 'main' into CCM-16446_UpdatingReadmeGuidence
aidenvaines-cgi 44c7179
CCM-16446 adding some primer material for github and vscode
aidenvaines-cgi 3430bf0
CCM-16446 adding some primer material for github and vscode
aidenvaines-cgi 1596e6a
Merge branch 'main' into CCM-16446_UpdatingReadmeGuidence
aidenvaines-cgi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,140 +1,44 @@ | ||
| # NHS Notify Web CMS Repository | ||
|
|
||
| [](https://github.com/nhs-england-tools/repository-template/actions/workflows/cicd-1-pull-request.yaml) | ||
| [](https://sonarcloud.io/summary/new_code?id=repository-template) | ||
| [](https://github.com/NHSDigital/nhs-notify-web-cms/actions/workflows/cicd-1-pull-request.yaml) | ||
| [](https://sonarcloud.io/summary/new_code?id=NHSDigital_nhs-notify-web-cms) | ||
|
|
||
| ## About this project | ||
|
|
||
| - This site includes the content for the public NHS Notify web site | ||
| - This site includes the content for the public [N]HS Notify web site](https://notify.nhs.uk/) | ||
| - It uses Jekyll to generate static web HTML files from markdown content | ||
| - the source code for the web site is in /docs folder | ||
| - page content is inside the `/docs/pages` folder | ||
| - page css is inside `/docs/_sass` folder | ||
|
|
||
| ## Getting Started - First time setup | ||
|
|
||
| This is only needed once. | ||
|
|
||
| To get started, please create a new GitHub workspace from the main branch. | ||
|
|
||
| This will setup a development environment for you to edit the web site in. The first time this runs, it will take approximately 10 minutes. You do not need to install ANY tools on your local computer. | ||
| - The source code for the web site is in `/docs` directory | ||
| - Page content is inside the `/docs/pages` directory | ||
| - Page CSS is inside `/docs/_sass` directory | ||
| - The webpage is published to GitHub Pages using [this GitHub Actions workflow](.github/workflows/jekyll-gh-pages.yml) | ||
|
|
||
| ### Pre-requisites | ||
|
|
||
| - A GitHub account | ||
| - For submitting changes, code must be signed. | ||
| - To sign code using GitHub code spaces, please configure GPG signing for the repository, from your Settings page. | ||
|
|
||
| ### 1. From a web browser, visit the Web CMS GitHub Repository page | ||
|
|
||
| [https://github.com/NHSDigital/nhs-notify-web-cms](https://github.com/NHSDigital/nhs-notify-web-cms) | ||
|
|
||
| ### 2. Click Code | ||
|
|
||
| Click the green `<> Code` button. | ||
|
|
||
|  | ||
|
|
||
| ### 3. Create Codespace on main | ||
|
|
||
| Click create code space on main | ||
|
|
||
|  | ||
|
|
||
| ### 4. Wait | ||
|
|
||
| - a new browser tab should open | ||
| - you will need to wait around 5 - 10 minutes | ||
|
|
||
| When it first starts it will look something like this. At it will say opening remote at the bottom left. | ||
|
|
||
|  | ||
|
|
||
| ### 5. Launch workspace | ||
|
|
||
| You will see a box pop up bottom right notifying you there is a workspace file. | ||
|
|
||
| - click the Green button to `Open Workspace` | ||
|
|
||
|  | ||
|
|
||
| ### 6 . Open parent git repository | ||
|
|
||
| Another box will pop up saying a parent git repository has been found. Click the Green `Yes` button to open it. | ||
|
|
||
|  | ||
|
|
||
| An option should appear at the top of the screen, select the `nhs-notify-web-cms` repository. | ||
|
|
||
|  | ||
|
|
||
| ### 5. Test it works | ||
|
|
||
| You should be able to run a live version of your changes before you submit them (via a Pull request) for updating the live content. | ||
|
|
||
| To do this, click the Run and Debug button, and then click the "Play" icon. Alternatively you can press F5 (warning, if you are not "clicked" in the window, it will refresh your page instead of launching the site). | ||
|
|
||
| - click the run and debug button: | ||
|
|
||
|  | ||
|
|
||
| - click the green "Play" button to the left of where it says `Attach (NHS Notify` | ||
|
|
||
|  | ||
|
|
||
| - after a few seconds, you should see moving text at the bottom of the screen and it say `server running` | ||
|
|
||
|  | ||
|
|
||
| - a box should appear bottom right saying your application is running. Click the green `Open in browser button` | ||
|
|
||
|  | ||
|
|
||
| - a new browser tab will open (with a random address), this is live updating as you change the content of the site. | ||
|
|
||
|  | ||
|
|
||
| ### 6. Make a preview change | ||
|
|
||
| - In the previous browser tab, click on the file `Explorer` button to show the file list. | ||
|
|
||
|  | ||
|
|
||
| - Click on the `pages` folder, and then `index.md`. This will open the content of the home page. | ||
|
|
||
|  | ||
|
|
||
| - you can now edit this page. To see a basic preview side by side, click the markdown preview button | ||
|
|
||
|  | ||
|
|
||
| - this will open a preview to the right | ||
|
|
||
|  | ||
|
|
||
| - If you now edit some text in the left, it will update in the basic preview on the right in real time. If you click `File` - `Save` (or `Ctrl-S`) this will save the file. | ||
|
|
||
| - Saving the file will update the Full preview site in the other browser tab. | ||
|
|
||
| - Open the other tab, and Press `F5` to refresh the page. | ||
| - For submitting changes; [**code must be signed** with a GPG key](setup/gpg.md) linked to your GitHub account. | ||
|
|
||
| ### 7. Making a change permanent and live | ||
| #### Setup guides | ||
|
|
||
| You must: | ||
| - [GPG setup for Codespaces](setup/gpg.md) | ||
| - [First-time Codespaces setup](setup/codespaces.md) | ||
| - [GitHub Copilot quick start](setup/copilot.md) | ||
| - [FAQ](setup/faq.md) | ||
|
|
||
| - create a new branch in your workspace | ||
| - commit the changes to your new branch | ||
| - push (publish) the new branch to your remote | ||
| - create a Pull Request for requesting that your remote branch is merged into main | ||
| - await approval | ||
| ### Making a changes checklist | ||
|
|
||
| ## Making further changes | ||
| - Create a new branch in your workspace | ||
| - Commit the changes to your new branch | ||
| - Push (publish) the new branch to your remote | ||
| - Create a Pull Request for requesting that your remote branch is merged into main | ||
| - Seek and await approvals | ||
| - Do not merge changes if all checks or are not passing. | ||
|  | ||
|
|
||
| ### Open existing CodeSpaces | ||
| ### Open existing Codespaces | ||
|
|
||
| - You can reuse existing CodeSpaces that have been setup. | ||
| - Visit [https://github.com/codespaces](https://github.com/codespaces) to see a list of code spaces | ||
| - Active code spaces are charged. Everyone gets 150 hours free per month. | ||
| - You can reuse existing Codespaces that have been setup. | ||
| - Visit [https://github.com/codespaces](https://github.com/codespaces) to see a list of Codespaces | ||
| - Active Codespaces are charged. Everyone gets 150 hours free per month. | ||
| - Click on the `three dots` and then click `stop codespace` to change it to inactive | ||
| - A stopped code space does not loose data | ||
| - You can delete a CodeSpace, but this will loose any data that you have not pushed (published) to a remote git branch. | ||
| - A stopped code space does **not** loose data | ||
| - You can delete a Codespace, but this **will** loose any data that you have not pushed (published) to a remote git branch. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| # First-Time Codespaces Setup | ||
|
|
||
| Use this guide for first-time setup in GitHub Codespaces. | ||
|
|
||
| ## 1. From a web browser, visit the Web CMS GitHub Repository page | ||
|
|
||
| [https://github.com/NHSDigital/nhs-notify-web-cms](https://github.com/NHSDigital/nhs-notify-web-cms) | ||
|
|
||
| ## 2. Click Code | ||
|
|
||
| Click the green `<> Code` button. | ||
|
|
||
| <img src="../assets/img/image.png" alt="Click Code" width="500"/> | ||
|
|
||
| ## 3. Create Codespace on main | ||
|
|
||
| Click create code space on main | ||
|
|
||
| <img src="../assets/img/image-1.png" alt="Create Codespace on main" width="500"/> | ||
|
|
||
| ## 4. Wait | ||
|
|
||
| - a new browser tab should open | ||
| - you will need to wait around 5 - 10 minutes | ||
|
|
||
| When it first starts it will look something like this. At it will say opening remote at the bottom left. | ||
|
|
||
| <img src="../assets/img/image-2.png" alt="Codespace starting up" width="500"/> | ||
|
|
||
| ## 5. Launch workspace | ||
|
|
||
| You will see a box pop up bottom right notifying you there is a workspace file. | ||
|
|
||
| - click the Green button to `Open Workspace` | ||
|
|
||
| <img src="../assets/img/image-3.png" alt="Open Workspace button" width="500"/> | ||
|
|
||
| ## 6. Open parent git repository | ||
|
|
||
| Another box will pop up saying a parent git repository has been found. Click the Green `Yes` button to open it. | ||
|
|
||
| <img src="../assets/img/image-4.png" alt="Parent repository dialog" width="500"/> | ||
|
|
||
| An option should appear at the top of the screen, select the `nhs-notify-web-cms` repository. | ||
|
|
||
| <img src="../assets/img/image-5.png" alt="Select repository option" width="500"/> | ||
|
|
||
| ## Confirm it works | ||
|
|
||
| You should be able to run a live version of your changes before you submit them (via a Pull request) for updating the live content. | ||
|
|
||
| To do this, click the Run and Debug button, and then click the "Play" icon. Alternatively you can press F5 (warning, if you are not "clicked" in the window, it will refresh your page instead of launching the site). | ||
|
|
||
| - click the run and debug button: | ||
|
|
||
| <img src="../assets/img/image-6.png" alt="Run and Debug button" width="500"/> | ||
|
|
||
| - click the green "Play" button to the left of where it says `Attach (NHS Notify` | ||
|
|
||
| <img src="../assets/img/image-7.png" alt="Play button" width="500"/> | ||
|
|
||
| - after a few seconds, you should see moving text at the bottom of the screen and it say `server running` | ||
|
|
||
| <img src="../assets/img/image-8.png" alt="Server running message" width="500"/> | ||
|
|
||
| - a box should appear bottom right saying your application is running. Click the green `Open in browser button` | ||
|
|
||
| <img src="../assets/img/image-9.png" alt="Open in browser button" width="500"/> | ||
|
|
||
| - a new browser tab will open (with a random address), this is live updating as you change the content of the site. | ||
|
|
||
| <img src="../assets/img/image-10.png" alt="Live updating website" width="500"/> | ||
|
|
||
| ## Make a preview change | ||
|
|
||
| - In the previous browser tab, click on the file `Explorer` button to show the file list. | ||
|
|
||
| <img src="../assets/img/image-11.png" alt="File Explorer button" width="500"/> | ||
|
|
||
| - Click on the `pages` folder, and then `index.md`. This will open the content of the home page. | ||
|
|
||
| <img src="../assets/img/image-12.png" alt="Pages folder and index.md" width="500"/> | ||
|
|
||
| - you can now edit this page. To see a basic preview side by side, click the markdown preview button | ||
|
|
||
| <img src="../assets/img/image-13.png" alt="Markdown preview button" width="500"/> | ||
|
|
||
| - this will open a preview to the right | ||
|
|
||
| <img src="../assets/img/image-14.png" alt="Preview panel" width="500"/> | ||
|
|
||
| - If you now edit some text in the left, it will update in the basic preview on the right in real time. If you click `File` - `Save` (or `Ctrl-S`) this will save the file. | ||
|
|
||
| - Saving the file will update the Full preview site in the other browser tab. | ||
|
|
||
| - Open the other tab, and Press `F5` to refresh the page. | ||
|
|
||
| ## Open existing Codespaces | ||
|
|
||
| - You can reuse existing Codespaces that have been setup. | ||
| - Visit [https://github.com/codespaces](https://github.com/codespaces) to see a list of Codespaces | ||
| - Active Codespaces are charged. Everyone gets 150 hours free per month. | ||
| - Click on the `three dots` and then click `stop codespace` to change it to inactive | ||
| - A stopped code space does **not** loose data | ||
| - You can delete a Codespace, but this **will** loose any data that you have not pushed (published) to a remote git branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # GitHub Copilot Quick Start | ||
|
|
||
| GitHub Copilot is available inside your Codespace and can help you draft, edit, and improve content faster. | ||
| <img src="../assets/img/copilot-howto.png" alt="Copilot" width="300"/> | ||
|
|
||
| ## Recommended guidance | ||
|
|
||
| For team guidance on safe and effective AI use, read: | ||
|
|
||
| - [NHS Engineering AI Coding Assistant User Guide](https://nhs.sharepoint.com/sites/X26_EngineeringCOE/SitePages/AI-Coding-Assistants---User-Guide.aspx?web=1&isSPOFile=1&ovuser=37c354b2-85b0-47f5-b222-07b48d774ee3%2Caiden.vaines2%40nhs.net&OR=Teams-HL&CT=1777458253077&clickparams=eyJBcHBOYW1lIjoiVGVhbXMtRGVza3RvcCIsIkFwcFZlcnNpb24iOiI1MC8yNjA0MDQwMTcxOCIsIkhhc0ZlZGVyYXRlZFVzZXIiOmZhbHNlfQ%3D%3D&linkOpenTime=1777458253084) | ||
| - [Making the best use of AI](https://nhsd-confluence.digital.nhs.uk/spaces/RIS/pages/1336633374/Team+SKYNET+Making+the+best+use+of+AI) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.