diff --git a/README.md b/README.md index 917c956..7499fc6 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ fly deploy - [GitHub API](https://docs.github.com/en/rest) - [Font Awesome](https://fontawesome.com/) +## 📝 TODO + +- [ ] Add nix support + ## 📄 License [MIT](LICENSE) \ No newline at end of file diff --git a/app/data/rooyca.md b/app/data/rooyca.md new file mode 100644 index 0000000..8013157 --- /dev/null +++ b/app/data/rooyca.md @@ -0,0 +1,30 @@ + + + +- profile-picture: https://avatars.githubusercontent.com/u/42101257?v=4 + + +# rooyca + + +| Pronouns: he/him +| Occupation: Studend +| Location: Colombia + +--- Bio --- + + +Crazy? I Was Crazy Once. They Locked Me In A Room. A Rubber Room. A Rubber Room With Rats. And Rats Make Me Crazy. + +--- Profile Items --- + + +- [Twitter](https://twitter.com/rooycaa) +- [Dev.to](https://dev.to/rooyca) +- [Linkedin](https://linkedin.com/rooyca) +- [Github](https://github.com/rooyca) +- [Buy Me a Coffee](https://buymeacoffee.com/rooyca) + + + +--- END --- \ No newline at end of file diff --git a/app/main.py b/app/main.py index a92db2a..8e95f6e 100644 --- a/app/main.py +++ b/app/main.py @@ -64,4 +64,4 @@ async def add_process_time_header(request: Request, call_next): if __name__ == "__main__": import uvicorn - uvicorn.run(app, host="127.0.0.1", port=8000) + uvicorn.run(app, host="0.0.0.0", port=8000) diff --git a/app/parse.py b/app/parse.py new file mode 100644 index 0000000..63d4e21 --- /dev/null +++ b/app/parse.py @@ -0,0 +1,47 @@ + +def parse_markdown(data: str): + """ + Parse markdown data and return a dictionary + """ + data = data.split("\n") + user_data_final = {} + for line in data: + if line.startswith(" +
{{ username }} {{ pronouns }}
+ ++ {{ occupation }} +
++ {{ location }} +
+{{ bio }}
+ +