Document not found (404)
+This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..711519b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,86 @@ +// Don't forget to add http://jenkins.dandaedre.com/gitea-webhook/post as a gitea webhook if is not in your organisation + +pipeline { + agent { label 'rust_no_docker' } // any COULD work, but prefer this label for mdbooks + /* =============== + BEGIN USER CONFIG + ================== */ + environment { + // The book name + BOOK_NAME = "M5S_Guide" + // Change with desired plugins + MDB_PLUGIN_LIST = "" + + // Book is usually a good intermediate name + MDBOOK_BUILD_DIR = "book" + // Infered deploy directory + DEPLOY_DIR = "/mnt/books/FFXIV_Guides/$BOOK_NAME" + } + + /* =============== + END USER CONFIG + ================== */ + + stages { + stage('Checkout') { + steps { + checkout scm // Checkout intead of full clone + } + } + + stage('Install mdBook') { + steps { + sh 'cargo install mdbook && echo "mdBook already installed"' // Install the latest mdBooks + } + } + + // stage('Install plugins'){ + // steps { + // sh 'cargo install ${MDB_PLUGIN_LIST}' + // } + // } + + stage('Build Book') { + steps { + sh 'mdbook build' + } + } + + stage('Scan Warnings') { + steps { + recordIssues tools: [ + groovyScript('mdbook_preprocessor_import') + ], + qualityGates: [ + [threshold: 1, type: 'TOTAL', unstable: true], + [threshold: 1, type: 'TOTAL_ERROR', unstable: false] + ] + } + } + + stage('Deploy to Books') { + steps { + sh 'echo "Deploying to ${DEPLOY_DIR}"' + sh 'mkdir -p ${DEPLOY_DIR}' + // sh 'rm -rf ${DEPLOY_DIR}/*' // This would be the nuclear approach + // sh 'cp -r ${MDBOOK_BUILD_DIR}/* ${DEPLOY_DIR}/' // Instead a rsync seems more sensible + sh 'rsync -a --delete ${MDBOOK_BUILD_DIR}/ ${DEPLOY_DIR}/' + } + } + } + + post { + success { + echo '✅ mdBook Built!' + // publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', + // text: 'you can publish checks in pipeline script', + // detailsURL: 'https://github.com/jenkinsci/checks-api-plugin#pipeline-usage', + // actions: [[label:'an-user-request-action', description:'actions allow users to request pre-defined behaviours', identifier:'an unique identifier']] + + } + failure { + echo '❌ mdbook Failed to Build' + } + } +} + diff --git a/book.toml b/book.toml new file mode 100644 index 0000000..c0c1af4 --- /dev/null +++ b/book.toml @@ -0,0 +1,10 @@ +[book] +authors = ["Vicky"] +language = "en" +multilingual = false +src = "src" +title = "A FFXIV guide to M5S" + +[output.html] +no-section-label = true +smart-punctuation = true diff --git a/book/.nojekyll b/book/.nojekyll new file mode 100644 index 0000000..f173110 --- /dev/null +++ b/book/.nojekyll @@ -0,0 +1 @@ +This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/book/404.html b/book/404.html new file mode 100644 index 0000000..5c226d4 --- /dev/null +++ b/book/404.html @@ -0,0 +1,197 @@ + + +
+ + +This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +Welcome to this M5S guide by vky ! It was made with information from world race streams, such as MrHappy's, Arthars' or Haruglory's. I take no credit in finding out the fights or creating strats, I am simply trying to make it easier to learn !
+I will try to keep this guide as up-to-date as possible if anything is wrong, or any better strat is found. So don't hesitate to reach out @vky on discord if you find anything !
+Have a good read, and happy prog !
+ +