{"id":18392263,"url":"https://github.com/tidyui/statica","last_synced_at":"2025-04-07T03:34:03.649Z","repository":{"id":45998495,"uuid":"206180184","full_name":"tidyui/statica","owner":"tidyui","description":"Simple Piranha Module for creating a partial page structure from local Markdown files","archived":false,"fork":false,"pushed_at":"2024-06-06T20:59:09.000Z","size":41,"stargazers_count":11,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T23:04:17.108Z","etag":null,"topics":["asp-net-core","markdown","netstandard","piranha-website"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidyui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-03T22:05:11.000Z","updated_at":"2025-02-15T13:22:29.000Z","dependencies_parsed_at":"2024-11-06T02:03:57.375Z","dependency_job_id":"e4e6c5c6-38d1-4fb9-b428-dd2434e68e8e","html_url":"https://github.com/tidyui/statica","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidyui%2Fstatica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidyui%2Fstatica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidyui%2Fstatica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidyui%2Fstatica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidyui","download_url":"https://codeload.github.com/tidyui/statica/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589655,"owners_count":20963020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","markdown","netstandard","piranha-website"],"created_at":"2024-11-06T01:56:07.531Z","updated_at":"2025-04-07T03:34:03.387Z","avatar_url":"https://github.com/tidyui.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Statica\n\n![Statica](http://piranhacms.org/assets/icon-statica.png)\n\n## About\n\nStatica is a module for [Piranha CMS](https://www.github.com/piranhacms/piranha.core) that turns\na **recursive** structure of `Markdown` files into a page structure that can be accessed from your\n**Piranha website**. The module can for example be used to display documentation on your website that\nyou want to author and edit somewhere else than through your website.\n\nFor example the module will be used on the official [Piranha website](http://www.piranhacms.org) to\nrender the documentation section.\n\n## Setup\n\nAdding statica to your application is easy. The only important this is that `UseStatica` should be placed **after** `UseStaticFiles` but **before** any dynamic handlers like `Mvc` is added to the middleware pipeline.\n\n    using Statica.Models;\n\n    public void ConfigureServices(IServiceCollection services)\n    {\n        ...\n\n        //\n        // Adds a new statica structure with the base slug\n        // docs and assets enabled\n        //\n        services.AddStatica(new Statica.Models.StaticStructure\n        {\n            Id = \"docs\",\n            DataPath = \"docs/src\",\n            BaseSlug = \"docs\",\n            UseAssets = true\n        });\n\n        ...\n    }\n\n    public void Configure(IApplicationBuilder app, IHostingEnvironment env)\n    {\n        ...\n\n        app.UseStaticFiles();\n        app.UseStatica(env);\n\n        ...\n    }\n\nIf `UseAssets` is set to `true`, Statica will **assume** that you have the folder `_assets` in your DataPath. Your assets will be exposed in your application on `BaseSlug/_assets`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidyui%2Fstatica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidyui%2Fstatica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidyui%2Fstatica/lists"}