Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic template generation (fix #34) #35

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

dgomesbr
Copy link

@dgomesbr dgomesbr commented Aug 8, 2016

Creates automatic generation logic

  • built-in toc resolver from the documentation
  • fixed and limited support for functions (inlined for now)
  • generates snippets on the output folder
  • checks if the template output folder exists and if-not creates it.
  • limited support for parameterization, using replace. (suboptimal)

@dgomesbr dgomesbr changed the title PR for #34 Dynamic template generation (fix #34) Aug 8, 2016
@beaknit
Copy link
Owner

beaknit commented Sep 29, 2016

Loving this! Although I just built a fresh virtualenv for this and ran it. Got the following:


     _                _          _ _       __   __
    | |              | |        (_) |     / /  / _|
    | |__   ___  __ _| | ___ __  _| |_   / /__| |_ ___  _ __ _ __ ___
    | '_ \ / _ \/ _` | |/ / '_ \| | __| / / __|  _/ _ \| '__| '_ ` _ `
    | |_) |  __/ (_| |   <| | | | | |_ / / (__| || (_) | |  | | | | | |
    |_.__/ \___|\__,_|_|\_\_| |_|_|\__/_/ \___|_| \___/|_|  |_| |_| |_|
    Updated: Thu, 29 Sep 2016 02:01:03 GMT
    Snippets founds: 171

   0% [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]
                                                                                     Generating snippets
Traceback (most recent call last):
  File "build-snippets.py", line 161, in <module>
    main()
  File "build-snippets.py", line 151, in main
    generate(index)
  File "build-snippets.py", line 65, in generate
    snippet = createSnippet(arn, title, href, full_href)
  File "build-snippets.py", line 89, in createSnippet
    return build_with_template(arn, title, tree, full_href)
  File "/Users/nathan/github/dgomesbr/cform/build/templating.py", line 18, in build_with_template
    processed_body = """"${{1:-}}" : {}""".format((body[0]).text_content())
IndexError: list index out of range


(cform) ➜  build git:(master) pip freeze
colorama==0.3.7
fabulous==0.3.0
lxml==3.6.4
requests==2.11.1```

@beaknit
Copy link
Owner

beaknit commented Sep 29, 2016

Also: Given how much you've put into this, why don't we take "Beaknit" out of the banner and just call it "Cform"? Seems like I'd be taking too much credit. ;-)

@beaknit
Copy link
Owner

beaknit commented Oct 5, 2016

What versions of those libs in requirements.txt are you using?

@dgomesbr
Copy link
Author

dgomesbr commented Oct 6, 2016

Sorry for the delay, travelling a lot :/

On Wed, Oct 5, 2016 at 6:38 PM, beaknit notifications@github.com wrote:

What versions of those libs in requirements.txt are you using?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAafMwg-iVBJ82xhFbukAKwI4vh6akUBks5qxBi9gaJpZM4JfY_7
.

@beaknit
Copy link
Owner

beaknit commented Oct 7, 2016

No worries! I've been in the same boat for like 2 months. :-)

On Wed, Oct 5, 2016 at 9:51 PM, Diego Magalhães notifications@github.com
wrote:

Sorry for the delay, travelling a lot :/

On Wed, Oct 5, 2016 at 6:38 PM, beaknit notifications@github.com wrote:

What versions of those libs in requirements.txt are you using?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#35 (comment), or
mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAafMwg-
iVBJ82xhFbukAKwI4vh6akUBks5qxBi9gaJpZM4JfY_7>
.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#35 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABOHHN7ucMGcXSEBNGTjyPgLVgkHCEZrks5qxFQygaJpZM4JfY_7
.

I am jack's complete lack of surprise . . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants