diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..f777a31 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,29 @@ +name: Deploy MKDocs to GitHub Page + +on: + push: + branches: + - master + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install mkdocs mkdocs-material + + - name: Deploy to GitHub Pages + run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 072e6bd..ce1fdd7 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -1,35 +1,35 @@ -# name: Lint & Format +name: Lint & Format -# on: -# push: -# branches: [master] -# pull_request: -# branches: [master] +on: + push: + branches: [master] + pull_request: + branches: [master] -# jobs: -# lint-format: -# name: Lint, Format, and Type Check -# runs-on: ubuntu-latest +jobs: + lint-format: + name: Lint, Format, and Type Check + runs-on: ubuntu-latest -# steps: -# - name: Checkout code -# uses: actions/checkout@v3 + steps: + - name: Checkout code + uses: actions/checkout@v3 -# - name: Set up Python -# uses: actions/setup-python@v4 -# with: -# python-version: '3.13' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.13' -# - name: Install dependencies -# run: | -# python -m pip install --upgrade pip -# pip install black isort mypy + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black isort mypy -# - name: Run black -# run: black . + - name: Run black + run: black . -# - name: Run isort -# run: isort . + - name: Run isort + run: isort . -# - name: Run mypy -# run: mypy . + - name: Run mypy + run: mypy . diff --git a/mkdocs.yml b/mkdocs.yml index 9cc0092..b066ef3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -117,17 +117,17 @@ markdown_extensions: plugins: - search - - i18n: - default_language: en - languages: - - locale: en - name: English - default: true - build: true - - locale: fr - name: Français - default: false - build: true + # - i18n: + # default_language: en + # languages: + # - locale: en + # name: English + # default: true + # build: true + # - locale: fr + # name: Français + # default: false + # build: true # - macros: # on_error_fail: true diff --git a/site/404.html b/site/404.html deleted file mode 100644 index 7d93b33..0000000 --- a/site/404.html +++ /dev/null @@ -1,649 +0,0 @@ - - - -
- - - - - - - - - - - - - - -No download options available.
"; - } -} - -function getWindows(id) { - // Define variables for contents of page - sessionId = document.getElementById("msdl-session-id"); - msContent = document.getElementById("msdl-ms-content"); - pleaseWait = document.getElementById("msdl-please-wait"); - processingError = document.getElementById("msdl-processing-error"); - download = document.getElementById("msdl-download"); - downloadLink = document.getElementById("msdl-download-link"); - - skuId = null; - sessionId.value = uuidv4(); - msContent.style.display = "none"; - processingError.style.display = "none"; - download.style.display = "none"; - pleaseWait.style.display = "block"; - - // Retrieve languages - winProductID = id; - getLanguages(winProductID); -} diff --git a/site/assets/javascripts/bundle.13a4f30d.min.js b/site/assets/javascripts/bundle.13a4f30d.min.js deleted file mode 100644 index c31fa1a..0000000 --- a/site/assets/javascripts/bundle.13a4f30d.min.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(()=>{var Wi=Object.create;var gr=Object.defineProperty;var Vi=Object.getOwnPropertyDescriptor;var Di=Object.getOwnPropertyNames,Vt=Object.getOwnPropertySymbols,zi=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable;var io=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&io(e,r,t[r]);if(Vt)for(var r of Vt(t))ao.call(t,r)&&io(e,r,t[r]);return e};var so=(e,t)=>{var r={};for(var o in e)yr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Vt)for(var o of Vt(e))t.indexOf(o)<0&&ao.call(e,o)&&(r[o]=e[o]);return r};var xr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ni=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Di(t))!yr.call(e,n)&&n!==r&&gr(e,n,{get:()=>t[n],enumerable:!(o=Vi(t,n))||o.enumerable});return e};var Lt=(e,t,r)=>(r=e!=null?Wi(zi(e)):{},Ni(t||!e||!e.__esModule?gr(r,"default",{value:e,enumerable:!0}):r,e));var co=(e,t,r)=>new Promise((o,n)=>{var i=p=>{try{s(r.next(p))}catch(c){n(c)}},a=p=>{try{s(r.throw(p))}catch(c){n(c)}},s=p=>p.done?o(p.value):Promise.resolve(p.value).then(i,a);s((r=r.apply(e,t)).next())});var lo=xr((Er,po)=>{(function(e,t){typeof Er=="object"&&typeof po!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Er,function(){"use strict";function e(r){var o=!0,n=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(k){return!!(k&&k!==document&&k.nodeName!=="HTML"&&k.nodeName!=="BODY"&&"classList"in k&&"contains"in k.classList)}function p(k){var ft=k.type,qe=k.tagName;return!!(qe==="INPUT"&&a[ft]&&!k.readOnly||qe==="TEXTAREA"&&!k.readOnly||k.isContentEditable)}function c(k){k.classList.contains("focus-visible")||(k.classList.add("focus-visible"),k.setAttribute("data-focus-visible-added",""))}function l(k){k.hasAttribute("data-focus-visible-added")&&(k.classList.remove("focus-visible"),k.removeAttribute("data-focus-visible-added"))}function f(k){k.metaKey||k.altKey||k.ctrlKey||(s(r.activeElement)&&c(r.activeElement),o=!0)}function u(k){o=!1}function d(k){s(k.target)&&(o||p(k.target))&&c(k.target)}function y(k){s(k.target)&&(k.target.classList.contains("focus-visible")||k.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),l(k.target))}function L(k){document.visibilityState==="hidden"&&(n&&(o=!0),X())}function X(){document.addEventListener("mousemove",J),document.addEventListener("mousedown",J),document.addEventListener("mouseup",J),document.addEventListener("pointermove",J),document.addEventListener("pointerdown",J),document.addEventListener("pointerup",J),document.addEventListener("touchmove",J),document.addEventListener("touchstart",J),document.addEventListener("touchend",J)}function ee(){document.removeEventListener("mousemove",J),document.removeEventListener("mousedown",J),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",J),document.removeEventListener("pointerdown",J),document.removeEventListener("pointerup",J),document.removeEventListener("touchmove",J),document.removeEventListener("touchstart",J),document.removeEventListener("touchend",J)}function J(k){k.target.nodeName&&k.target.nodeName.toLowerCase()==="html"||(o=!1,ee())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",L,!0),X(),r.addEventListener("focus",d,!0),r.addEventListener("blur",y,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var qr=xr((dy,On)=>{"use strict";/*! - * escape-html - * Copyright(c) 2012-2013 TJ Holowaychuk - * Copyright(c) 2015 Andreas Lubbe - * Copyright(c) 2015 Tiancheng "Timothy" Gu - * MIT Licensed - */var $a=/["'&<>]/;On.exports=Pa;function Pa(e){var t=""+e,r=$a.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i