{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":560294453,"defaultBranch":"main","name":"patrika","ownerLogin":"akshat1","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-11-01T06:45:41.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1529776?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1726904829.0","currentOid":""},"activityList":{"items":[{"before":"6d966e463215602d5b018cd646d70396177771b0","after":null,"ref":"refs/heads/task--pagination","pushedAt":"2024-09-21T07:47:09.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"}},{"before":"7fb8004f50d3e307f6513a5e402229a1502cba7e","after":"f9975ad6bc0f9c0b7d56e497c6aac7ef5c164cda","ref":"refs/heads/main","pushedAt":"2024-09-21T07:46:58.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Pagination + Template changes + less opinionatedness (#10)\n\n1. Patrika now expects a template JS files instead of a runner config json.\r\n1. Patrika now treats very few properties in content frontMatter as required. Namely, `id`, `title` and `publishDate`.\r\n1. Patrika no longer cares about ContentItemType. We now accept a single glob input (`contentGlob`), and we have removed the `ContentItemType` enum. That's because people may choose to organize their site in ways other than the classic page/post scheme. Users can instead add any differentiating data as part of the frontMatter block.\r\n1. eslintrc.js renamed to eslintrc.cjs; because node/TS/ESM/CJS fun times.\r\n1. We are once again building less files. Still torn between building it through Patrika (and eventually adding support for more sophisticated CSS building) or leaving it out, as I'd rather avoid that particular open-ended problem. But those styles are useful for testing at this time while I'm actively developing Patrika.\r\n1. `renderToString` can now return an array of strings instead of a single string. If a string is returned, then each of the strings is saved into a separate html file as `file.html`, `file-1.html`, `file-2.html`, ... and so on. This is meant to handle things like post archives etc. without having Patrika try to paginate things. Which we wanted to avoid because doing that would require Patrika to know about what needs to be paginated, which would require us to know about collections, and so on. With our current approach, the template is responsible for paginating whatever they want to paginate, thus letting Patrika stay unopinionated.","shortMessageHtmlLink":"Pagination + Template changes + less opinionatedness (#10)"}},{"before":"337a92730f5503eb832bab281520c4f54637df3f","after":"6d966e463215602d5b018cd646d70396177771b0","ref":"refs/heads/task--pagination","pushedAt":"2024-09-21T07:45:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Updated README.","shortMessageHtmlLink":"Updated README."}},{"before":"3a5b77ee0400ce000767e1578f2e023064eb82f7","after":"337a92730f5503eb832bab281520c4f54637df3f","ref":"refs/heads/task--pagination","pushedAt":"2024-09-21T07:23:04.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"I have been fixing the compiled js file instead of the corresponding TS file. The workflow should complete now.","shortMessageHtmlLink":"I have been fixing the compiled js file instead of the corresponding …"}},{"before":"00749d09ff57e9674b183b0c5c54f8c2bb572b03","after":"3a5b77ee0400ce000767e1578f2e023064eb82f7","ref":"refs/heads/task--pagination","pushedAt":"2024-09-21T07:13:15.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"1. Re-enabled building less.\n2. More changes required for running patrika programmatically as well as through CLI.","shortMessageHtmlLink":"1. Re-enabled building less."}},{"before":"3ba0ffb4988fed6b652bf78dc71566bceb4d9f21","after":"00749d09ff57e9674b183b0c5c54f8c2bb572b03","ref":"refs/heads/task--pagination","pushedAt":"2024-09-21T05:38:51.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"1. Solved the mysrery of the self appearing Date objects in the front-matter. Turns out frontmatter is reading `publishDate` as a Date; I'm not sure if that's because of the test being formatted as a date. Will investigate and make sure users are warned about malformed dates.\n2. Fixed a recent regression where we broke programmatic use of Patrika; we had updated all code to load the template in order to get the config or getSlug etc., but we don't have a template when Patrika is run from JS instead of the CLI. Now, the codepaths originating from the runner flush and load the template, while the rest of the code is not aware of the template. Instead, any needed functions or data are passed in as arguments (as opposed to the called function loading the template and obtaining this info).","shortMessageHtmlLink":"1. Solved the mysrery of the self appearing Date objects in the front…"}},{"before":"2da9cd69efa5f62e13c06034b40604d8b627cf9e","after":"3ba0ffb4988fed6b652bf78dc71566bceb4d9f21","ref":"refs/heads/task--pagination","pushedAt":"2024-09-14T04:40:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Simplified things a bit by making PAtrika care even less about the structure of the input files:\n1. `getSlug` is not longer expected as part of GetPatrikaArgs. We simply invoke getSlug via `(await loadTemplate()).getSlug()`.\n2. No more ContentType from Patrika's perspective. We now only accept a single glob (instead of `pagesGlob` and `postsGlob`), and `ContentItem` no longer has a type property. The user is free to create their own distinctions through the use of frontmatter.\n3. Drastically reduced the number of FrontMatter fields that Patrika cares about. We now require just three mandatory fields, `id`, `title`, `publishDate`, and just one optional field `draft`.\n4. Most fields from FrontMatter will now be kept within `ContentItem:FrontMatter` instead of being hoisted to `ContentItem`. The only fields to be hoisted now will be the four fields mentioned previously. The user may choose to add any data into FrontMatter and it will be available to the template code (through `ContentItem:FrontMatter`.\n5. Several other tweaks to adjust for the new, simpler contract between Patrika and the template.\n6. Commented out building styles.","shortMessageHtmlLink":"Simplified things a bit by making PAtrika care even less about the st…"}},{"before":"5ea8e4342112215662bd2c0af584db403eef5ba4","after":"2da9cd69efa5f62e13c06034b40604d8b627cf9e","ref":"refs/heads/task--pagination","pushedAt":"2024-09-12T23:39:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"ensureDirectory was used only in the less compilation module, which we are planning to remove anyway. I removed it, and used fs.mkdir instead.","shortMessageHtmlLink":"ensureDirectory was used only in the less compilation module, which w…"}},{"before":null,"after":"5ea8e4342112215662bd2c0af584db403eef5ba4","ref":"refs/heads/task--pagination","pushedAt":"2024-09-12T06:45:07.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Checkpoint: we are now accepting multiple ourputs from a single render call to generate multiple output files. I want to massage the url / output file path logic a little bit to see if I can simplify it. I might also want to pull in a mechanism for non-sequential, ad-hox multi outputs (for instance, for creating tag specific pages).","shortMessageHtmlLink":"Checkpoint: we are now accepting multiple ourputs from a single rende…"}},{"before":"82fba54545505020355f0a99b84caf6c0f59d7b3","after":null,"ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-12T01:40:37.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"}},{"before":"fe285880b89ae47704fc212c109926044705480c","after":"7fb8004f50d3e307f6513a5e402229a1502cba7e","ref":"refs/heads/main","pushedAt":"2024-09-12T01:40:33.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Task integrate runner (#9)\n\nPatrika runner is now integrated into the Patrika package. This package now provides a command line interface which accepts a configuration json file along with the template JavaScript to generate your static site. Details are in the updated README.\r\n\r\nAdditionally, we are no longer publishing this to the github package repository, opting instead to publish it on the akshatmedia package repository (https://warehouse.akshatmedia.com).","shortMessageHtmlLink":"Task integrate runner (#9)"}},{"before":"a02c6f36a3c6efb5a735c37ce7a9b396fbb45149","after":"82fba54545505020355f0a99b84caf6c0f59d7b3","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-12T01:21:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Updated README and added examples.","shortMessageHtmlLink":"Updated README and added examples."}},{"before":"e536607f457777c89af3ef812fca1861b8673eb3","after":"a02c6f36a3c6efb5a735c37ce7a9b396fbb45149","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-12T00:14:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"1. Updated command line args logic to handle `-V / --version` switches.\n2. Added project homepage to package.json.\n3. The runner now loads package.json and uses it to get package version and homepage info.\n4. Set license to UNLICENSED.","shortMessageHtmlLink":"1. Updated command line args logic to handle -V / --version switches."}},{"before":"480e8c5df2e39e73af987920ae7f8fb48aef649a","after":"e536607f457777c89af3ef812fca1861b8673eb3","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-11T23:30:46.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Updated our one test to specify full name when importing stuff (ESM fun fun).","shortMessageHtmlLink":"Updated our one test to specify full name when importing stuff (ESM f…"}},{"before":"5462c6b02b38d5e52bb298599a74db039a8b8861","after":"480e8c5df2e39e73af987920ae7f8fb48aef649a","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-11T23:29:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Removed lint step from workflow until we fix the eslint config (currently things break because this package is now an ESM and our version of ESLint seems to use require).","shortMessageHtmlLink":"Removed lint step from workflow until we fix the eslint config (curre…"}},{"before":"a4e25ddffd50370c57f10f8ab9af37ef03cdff92","after":"5462c6b02b38d5e52bb298599a74db039a8b8861","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-11T23:26:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"1. Tweaked local environment so only scoped packages go through warehouse.akshatmedia.\n2. Updated yarn lock file.\n3. Updated the test command to not run the build command at the same time.\n4. Updated workflow file to use Ubuntu-24.04 and to build before executing tests.","shortMessageHtmlLink":"1. Tweaked local environment so only scoped packages go through wareh…"}},{"before":"4bdb1315482a07383983f7ca11bfe8dfb1a3b016","after":"a4e25ddffd50370c57f10f8ab9af37ef03cdff92","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-11T23:15:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"1. Added npm and yarn configs to use the akshatmedia repository for correctly scoped packages.\n2. We are now ESM, and we have incurred all the pain entailed in that. Why are we ESM? Because we wanted to use the @akshat1/js-logger, which is ESM. And that is ESM because we want to easily tree shake browser only code. Is there an easier method? Possibly, but who the heck rightly knows. Even Node contributors are not always fully aware of how various different loaders behave. Throw in TS compilation and the mysteries of tsconfig and you have the perfect storm. I don't want to live on this planet anymore.","shortMessageHtmlLink":"1. Added npm and yarn configs to use the akshatmedia repository for c…"}},{"before":"db595eb015079ad74a86a97c3a7fbe910da0b1f3","after":"4bdb1315482a07383983f7ca11bfe8dfb1a3b016","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-10T22:14:39.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Updated lockfile to not use my internal npm registry. Also updated npmrc to correctly route @akshat1/foo to the github package repository.","shortMessageHtmlLink":"Updated lockfile to not use my internal npm registry. Also updated np…"}},{"before":null,"after":"db595eb015079ad74a86a97c3a7fbe910da0b1f3","ref":"refs/heads/task--integrate-runner","pushedAt":"2024-09-10T22:03:31.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"1. Added the runner code, along with a bin file. Now you can execute Patrike from the command line.\n2. Minor lint and TS tweaks.\n3. Trying the excellent kanpilot extension for vscode.","shortMessageHtmlLink":"1. Added the runner code, along with a bin file. Now you can execute …"}},{"before":"ad29040c7e670553cdf6ed42bdc5491f0626c4e7","after":null,"ref":"refs/heads/task--export-get-slug-type","pushedAt":"2024-08-21T06:06:04.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"}},{"before":"16bb08dc150ddcbfdcb097cd2980bc217898fb98","after":"fe285880b89ae47704fc212c109926044705480c","ref":"refs/heads/main","pushedAt":"2024-08-21T06:06:01.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Merge pull request #8 from akshat1/task--export-get-slug-type\n\nTop level export GetSlug type.","shortMessageHtmlLink":"Merge pull request #8 from akshat1/task--export-get-slug-type"}},{"before":null,"after":"ad29040c7e670553cdf6ed42bdc5491f0626c4e7","ref":"refs/heads/task--export-get-slug-type","pushedAt":"2024-08-21T06:02:54.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Top level export GetSlug type.","shortMessageHtmlLink":"Top level export GetSlug type."}},{"before":"394812b7e9ae211135dc0c8cda9d3259e0e66c30","after":null,"ref":"refs/heads/task--14--shortcode","pushedAt":"2024-07-28T06:48:56.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"}},{"before":"3f96ad415affd0d3f2bd5971bbd12624d88eeaa4","after":"16bb08dc150ddcbfdcb097cd2980bc217898fb98","ref":"refs/heads/main","pushedAt":"2024-07-28T06:48:53.000Z","pushType":"pr_merge","commitsCount":21,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Merge pull request #6 from akshat1/task--14--shortcode\n\nSimpler short codes.","shortMessageHtmlLink":"Merge pull request #6 from akshat1/task--14--shortcode"}},{"before":"28ad393d9b3c804ef6a588ddc043dc04ea3db24d","after":"394812b7e9ae211135dc0c8cda9d3259e0e66c30","ref":"refs/heads/task--14--shortcode","pushedAt":"2024-07-28T06:47:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Removed the beta designation.","shortMessageHtmlLink":"Removed the beta designation."}},{"before":"51dc5a069df78e3832f493e19aea7b6c435f8942","after":"28ad393d9b3c804ef6a588ddc043dc04ea3db24d","ref":"refs/heads/task--14--shortcode","pushedAt":"2024-07-28T06:41:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Fixed README typo and cleaned up some verbiage.","shortMessageHtmlLink":"Fixed README typo and cleaned up some verbiage."}},{"before":"c3eb6dd968cfda4bbb59e45934d0ab9011cbf106","after":"51dc5a069df78e3832f493e19aea7b6c435f8942","ref":"refs/heads/task--14--shortcode","pushedAt":"2024-04-18T09:37:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Forgot to update the GH action file.","shortMessageHtmlLink":"Forgot to update the GH action file."}},{"before":"65d3de5d5e77517192ec33282d990d11ce8abf41","after":"c3eb6dd968cfda4bbb59e45934d0ab9011cbf106","ref":"refs/heads/task--14--shortcode","pushedAt":"2024-04-18T09:36:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"ESLint, says options have changed and it no longer recognizes ext. Meanwhile the webpage says ext is a valid option. This is the sort of crap that makes people hate JS. ESLint has been problematic for years and years. F It.","shortMessageHtmlLink":"ESLint, says options have changed and it no longer recognizes ext. Me…"}},{"before":"967e60188ce5152b054b9f3987d72ab5f8a56adc","after":"65d3de5d5e77517192ec33282d990d11ce8abf41","ref":"refs/heads/task--14--shortcode","pushedAt":"2024-04-18T09:30:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"The wonderful eslint. Trying different node versions.","shortMessageHtmlLink":"The wonderful eslint. Trying different node versions."}},{"before":"876c8d45b2e1fee99d2a697c29110a644d519476","after":"967e60188ce5152b054b9f3987d72ab5f8a56adc","ref":"refs/heads/task--14--shortcode","pushedAt":"2024-04-18T09:23:34.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"akshat1","name":"Akshat","path":"/akshat1","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1529776?s=80&v=4"},"commit":{"message":"Removed --fix option to see if that fixes the failed GH action.","shortMessageHtmlLink":"Removed --fix option to see if that fixes the failed GH action."}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0yMVQwNzo0NzowOS4wMDAwMDBazwAAAAS8mMUh","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNC0xOFQwOToyMzozNC4wMDAwMDBazwAAAAQz8uGr"}},"title":"Activity · akshat1/patrika"}