Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:02
    daveaglick commented #809
  • 15:01
    daveaglick commented #809
  • 11:26
    alexmg commented #809
  • 11:04
    alexmg commented #809
  • 08:19
    alexmg commented #809
  • Sep 05 08:37
    deerchao opened #864
  • Aug 28 02:59
    codeease1 commented #863
  • Aug 28 02:56
    codeease1 commented #863
  • Aug 28 02:52
    codeease1 commented #863
  • Aug 26 19:01
    daveaglick closed #862
  • Aug 26 19:01
    daveaglick commented #862
  • Aug 26 18:58
    evanricard commented #862
  • Aug 26 12:19
    daveaglick commented #862
  • Aug 26 12:09
    daveaglick labeled #863
  • Aug 26 12:09
    daveaglick commented #863
  • Aug 26 06:56
    tesar-tech commented #863
  • Aug 25 16:58
    codeease1 opened #863
  • Aug 23 13:49
    evanricard commented #862
  • Aug 23 07:09
    gep13 commented #862
  • Aug 23 02:13
    evanricard commented #862
Petrik van der Velde
@pvandervelde
@daveaglick any suggestions as to which collection I should aim for to get a list of all the pages?
Steven T. Cramer
@StevenTCramer
@glennawatson you are just a beast :)
Mordechai Zuber
@M-Zuber
yeah, not quite sure how they calculate things, but no way in hell I am in the top 1% worldwide for c#...
(and at the same time only top 33% in graphql)
Mehmet Fazlı BERKDEMİR
@mfberkdemir
hi i am mehmet. I use a simple way to publis a blog. no appvoyer no build server just github two repo. to examine https://mfberkdemir.github.io/posts/wyam-yayinlama.html
@daveaglick I use a simple way to publis a blog github pages https://github.com/mfberkdemir/
Daniel Kuschny
@Danielku15
Hi everyone. I'm currently trying to create a documentation like https://datatables.net/reference/option/ for my library. I created individual pages for all my properties with some metadata defined. Now I'd like to generate a table from those sub-pages but funnily I'm stuck with getting all the pages using the Wyam API.
I have a "settings.cshtml" page where I want to get all pages contained in a specific subfolder (e.g. "properties") to fill them into a table and link them ultimately. Does anybody know how to query all pages of a specific absolute or relative tree within the page hierarchy? Please note that I'm not using the API generation for this case and I am creating a manual tree of doc-pages.
Daniel Kuschny
@Danielku15
After crawling through the source I found the global "Documents" object and built myself a function that works for my case. Not sure if there might be a built-in version of the same feature.
@functions {
    IEnumerable<IDocument> GetDocumentsAtPath(string relativePath)
    {
        return Documents.Where(d => 
            string.Join("/", d.Get<object[]>(Keys.TreePath) ?? new object[0])
            .StartsWith(relativePath)
        );
    }
}
Steven T. Cramer
@StevenTCramer
@daveaglick Could you give a real quick overview of the conceptual differences and goals in Statiq and DocFx?
Petrik van der Velde
@pvandervelde
@daveaglick Any suggestions on which collection to grab to get all the documents? :point_up: July 10, 2019 10:44 PM
Todd Higgins
@higginsta
Just getting started with Wyam for my blog ( and .NET in general), is Statiq for me, or is there another project called Splashdown that I should be looking out for?
Mattias Karlsson
@devlead
Wyam was at one point intended to be renamed to splashdown but ended up as Statiq, Statiq is Wyam vNext, so today i would take a look at wyam and follow closely how statiq evolves.
Todd Higgins
@higginsta
Thanks for the info . What flavor of markdown does Wyam/Statiq support?
Mattias Karlsson
@devlead
Most GH flavored
Including code fences i.e.
Todd Higgins
@higginsta
it looks like it incorporates the Markdig processor. I've used a smattering of markdown in the past, I'm just trying to figure out what it (wyam) is capable of
Dave Glick
@daveaglick
@higginsta Mattias is spot on. Splashdown was an early draft name for what is now officially named Statiq (I.e., a Wyam “reboot”). It’s the same codebase, just greatly evolved with a lot of breaks. It’s a chance to take learnings from the last three years of Wyam and build something better as an evolution. Statiq is still several months off - while Wyam isn’t getting any more updates, it works fine and most of the concepts carry over (if not the code - which should port without that much trouble either). I’d feel comfortable using Wyam but keeping an eye on Statiq for updates as it gets closer.
You’re also correct about about Markdig being used - it’s customizable through Wyam (check the docs page for the Markdown module) so you can turn on or off non-standard features like tables. Out of the box it works similarly to GitHub flavored.
(Sorry if I double post - at a camp site with very limited signal)
@pvandervelde the documents collection is the right place to look - it organizes by pipeline so if you’re trying to grab a document from within the same pipeline (I.e., on another page being rendered at the same time) it won’t be available. Maybe that’s what’s going on? In these cases I usually make another pipeline after the one with the document I need to consume.
Petrik van der Velde
@pvandervelde
@daveaglick Thanks that might make sense. I'll go study pipelines and how to make a new one. Are there any examples of making a new pipeline and then consuming it?
eaespindola
@eaespindola
Hi, does anybody know if there is a way to force trailing slashes without resorting to subdirectories and index.html files? I'm using the preview server but even if I could set it up on a different one the links don't contain the trailing slash.
Vlad
@Vladekk
Hey @daveaglick , i've seen you fresh comment, guess you can be online
I tried to use new version in several ways.
Using as global tool with global packages, and also as local unzipped install with global/local packages.
Something like that.
```

` Wyam version 2.2.7

            ,@@@@@@p
          ,@@@@@@@@@@g
        z@@@@@@@@@@@@@@@
      g@@@@@@@@@@@@@@@@@@@,
    g@@@@@@@@@@@@@@@@@@@@@@@,
  ,@@@@@@@@@@@@@@@@@@@@@@@@@@@
 ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 $@@@@@@@@@@@@@@@@@@@@@@@@@@@@@c
 @@@@@@@@@@@@@@@@@@@@@@@@B@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@  j@@@@@
 $@@@@@@@@@@@@@@@@@@@@@F  #@@@@`
  $@@@@@@@@@@@@@@@@@@P   g@@@@P
   %@@@@@@@@@@@@@     ,g@@@@@P
    3@@@@@@@@@@@@@@@@@@@@@@B`
      `%@@@@@@@@@@@@@@@@@P
         `*%RB@@@@@RRP`

BUILD
Loading configuration from file:///D:/Docs/Source/Izvne.com/Izvne.com/local.wyam
Installing NuGet packages
Installing packages to C:/Users/vkugelevics/.nuget/packages (using global packages folder)
Install failed. Rolling back...
Error while installing packages, attempting without remote repositories
Error while installing packages, attempting to continue anyway
NuGet packages installed in 6258 ms
Loading assemblies
Assemblies loaded in 53 ms
Cataloging classes
Classes cataloged in 77 ms
Evaluating configuration script
Error while loading configuration: System.IO.FileNotFoundException: Could not load file or assembly 'Wyam.Minification, Version=2.2.4.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Wyam.Minification, Version=2.2.4.0, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileNotFoundException: Could not load the specified file.
File name: 'Wyam.Minification'
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at Script.Run()
at Wyam.Configuration.Configurator.Evaluate(String code, FilePath configFilePath) in C:\Code\Wyam\Wyam\src\core\Wyam.Configuration\Configurator.cs:line 398
at Wyam.Configuration.Configurator.Configure(IFile configFile) in C:\Code\Wyam\Wyam\src\core\Wyam.Configuration\Configurator.cs:line 135
at Wyam.EngineManager.Configure() in C:\Code\Wyam\Wyam\src\clients\Wyam\EngineManager.cs:line 123 `

Vlad
@Vladekk
Okay, it works now. I needed to restart shell.
Dave Glick
@daveaglick
@pvandervelde Check out the Cake website's config file - it has examples of adding pipelines both before/after other ones and at the end: https://github.com/cake-build/website/blob/master/config.wyam
@Vladekk :thumbsup: glad it's working!
@eaespindola Do you mean you want generated links to all contain a trailing slash? I.e., "/blog" should be "/blog/"?
eaespindola
@eaespindola
Hi @daveaglick! yes, and getting the preview server to load from "/blog/" if possible by having a document blog.md instead of having to resort to blog/index.md
Alex
@awulkan
Hey. I saw that you're working on Statiq now. Is there any place I can read about the goal of it? Like what it aims to improve over Wyam. Will it be easier to work with, more performant, have more features, be more extensible, or what? Thanks!
Mattias Karlsson
@devlead
@awulkan I'm not @daveaglick, but some things I've seen mentioned about Statiq goals
  • Fully async pipeline
  • Phased pipelines
  • Parallel pipeline execution
  • Support for dependency injection
  • Simplification of file meta data
  • Better re-execution caching

Statiq vs. Wyam

  • Wyam blog recipe -> Statiq
  • Wyam docs recipe -> Statiq
  • Wyam global tool -> Statiq global tool
  • Wyam Cake addin -> Statiq Cake addin
  • Wyam.config -> Your own .NET Core console
Alex
@awulkan
Thanks
tesar-tech
@tesar-tech
Hello. Does anybody know how to be listed in "Used by" github list? I thought it is managed automatically..(?)..
image.png
Steven T. Cramer
@StevenTCramer
Thye just magically appear, I know my blazor-state component now shows them. Not sure what criteria are needed.
I did nothing specific to get it to show up.
but I am assuming they map nuget package somehow
tesar-tech
@tesar-tech
There are just 15 repos. According to github cofig.wyam search there should be 530 repos.
Daniel Kuschny
@Danielku15
@tesar-tech Looks like my project is listed there. Usually the GitHub dependencies are based on the package management systems used in the project. e.g. package.json for Node.js or package.json/PackageReference for C#. I have a PackageReference in one of my csprojs. Usually the "Insights > Dependency graph" page of the repository lists where the dependencies are picked up from.
Mattias Karlsson
@devlead
Atm for .NET assemblies they're looking at packages.config and csproj/fsproj
tesar-tech
@tesar-tech
@Danielku15 @devlead Oh, yes, that is the "criteria" thanks. Means no "row" (without csproj files) wyam blogs will be listed there and this "Used by" feature is imperfect for wyam..
Dave Glick
@daveaglick
The reason Wyam doesn't list many is because most uses of Wyam are either implicit (I.e., there's a config.wyam file in the repository but the actual usage happens via a global tool some other not-in-the-repo mechanism) or it's brought in via a mechanism the GitHub engine doesn't know how to look at (like a Cake script)

this "Used by" feature is imperfect for wyam

That's an understatement :smile:

eaespindola
@eaespindola
Hi @daveaglick! yes, and getting the preview server to load from "/blog/" if possible by having a document blog.md instead of having to resort to blog/index.md
Kalyanasundaram
@sundhar19
@daveaglick or rest of the members here, I would like to Query blogs from Orchard core CMS using graphql api in my Wyam pipeline. as of now I am trying to use download module for this purpose. but not sure how to pass the authentication credentials
Any help would be appreciated
Dave Glick
@daveaglick
@sundhar19 that's a really interesting use case! I haven't used GraphQL much - is there a .NET API you can use to query a GraphQL endpoint and get back results? If so, then one way to do it would be to use the Execute module to write code that interacts with the .NET GraphQL library. The Execute module takes a delegate and so you'd want to return documents using context.GetDocument(...)with whatever metadata you need from the GraphQL endpoint.
I wonder if it's worth building a dedicated GraphQL module into Statiq...