-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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,71 +1,11 @@ | ||
--- | ||
layout: post | ||
title: "Introduction" | ||
date: 2019-01-20 23:45:29 -0800 | ||
title: "What is DevMatch?" | ||
date: 2023-03-27 23:45:29 -0800 | ||
categories: docs | ||
--- | ||
|
||
This blog is a git repo hosted in GitHub. Every push to master triggers a CI build in AzureDevops which builds the site using Jekyll and pushes the results to a Blob Storage account in Azure. The Blob Storage has HTTP access enabled with a custom domain. | ||
|
||
Building the jekyll site: | ||
|
||
``` | ||
gem install bundler jekyll | ||
bundle | ||
bundle exec jekyll build | ||
ls _site | ||
``` | ||
|
||
Uploading the files to storage account: | ||
|
||
``` | ||
#!/bin/bash | ||
export AZURE_STORAGE_ACCOUNT="alanboyblog" | ||
export container_name=\$web | ||
cd _site | ||
for f in $(find . -type f); do echo "Uploading ${f:2} ..." | ||
&& az storage blob upload --container-name $container_name --file ${f:2} --name ${f:2} ; | ||
done | ||
``` | ||
|
||
I created a custom Jekyll theme that uses SeleniumUI for the HTML elements. | ||
|
||
For the search, during build-time we create a js file which contains metadata for all the posts and provide that as an input to the search element. | ||
|
||
To include mermaid, do this: | ||
|
||
``` | ||
<div class="mermaid"> | ||
sequenceDiagram | ||
Alice ->> Bob: Hello Bob, how are you? | ||
Bob-->>John: How about you John? | ||
Bob--x Alice: I am good thanks! | ||
Bob-x John: I am good thanks! | ||
</div> | ||
``` | ||
|
||
``` | ||
<div class="mermaid"> | ||
graph TD | ||
A[Christmas] -->|Get money| B(Go shopping) | ||
B --> C{Let me think} | ||
C -->|One| D[Laptop] | ||
C -->|Two| E[iPhone] | ||
C -->|Three| F[fa:fa-car Car] | ||
</div> | ||
``` | ||
|
||
## Some helpful links in the process | ||
- https://alanboy.visualstudio.com/blog/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=2&view=Tab_Triggers | ||
- https://azure.microsoft.com/en-us/blog/azure-storage-static-web-hosting-public-preview/ | ||
- https://docs.microsoft.com/en-us/azure/storage/blobs/storage-custom-domain-name | ||
- https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli#specify-storage-account-credentials | ||
- https://docs.microsoft.com/en-us/azure/storage/common/storage-azure-cli | ||
- https://docs.microsoft.com/en-us/cli/azure/storage/blob/copy?view=azure-cli-latest#az-storage-blob-copy-start | ||
- https://jekyllrb.com/docs/ | ||
- https://mermaid-js.github.io/mermaid-live-editor/#/edit/ | ||
|
||
# What is DevMatch? | ||
|
||
|
This file contains 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 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 |
---|---|---|
|
@@ -2,5 +2,3 @@ | |
layout: home | ||
--- | ||
|
||
|
||
Test homepage |